PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Caching.​Backends.​Azure Namespace/Azure­Cache­Invalidator Class

AzureCacheInvalidator Class

An implementation of CacheInvalidator based on Microsoft Azure Service Bus.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Caching.Backends.Azure
Assembly:  PostSharp.Patterns.Caching.Backends.Azure (in PostSharp.Patterns.Caching.Backends.Azure.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public class AzureCacheInvalidator : CacheInvalidator

The AzureCacheInvalidator type exposes the following members.

Properties
  NameDescription
Public propertyId
Gets the Guid of the current CachingBackend.
(Inherited from CachingBackend.)
Protected propertyLogger
Gets the Logger that implementations can use to emit log records.
(Inherited from CachingBackend.)
Public propertyOptions
Gets the options of the current CacheInvalidator.
(Inherited from CacheInvalidator.)
Public propertyStatus
Gets the status of the current CachingBackend (Default, Disposing or Disposed).
(Inherited from CachingBackend.)
Public propertySupportedFeatures
Gets the set of features supported by the current CachingBackend.
(Inherited from CachingBackend.)
Public propertyUnderlyingBackend
Gets the next CachingBackend in the chain of responsibility.
(Inherited from CachingBackendEnhancer.)
Public propertyValueAdapters
Gets the factory of value adapters (IValueAdapter), which allow for instance to cache things like Stream or IEnumerable, which could not be otherwise cached.
(Inherited from CachingBackend.)
Methods
  NameDescription
Public methodClear
Clears the cache.
(Inherited from CachingBackend.)
Public methodClearAsync
Asynchronously clears the cache.
(Inherited from CachingBackend.)
Protected methodClearAsyncCore
Asynchronously clears the cache. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked.
(Inherited from CachingBackendEnhancer.)
Protected methodClearCore
Clears the cache. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked.
(Inherited from CachingBackendEnhancer.)
Public methodContainsDependency
Determines whether the cache contains a given dependency.
(Inherited from CachingBackend.)
Public methodContainsDependencyAsync
Asynchronously determines whether the cache contains a given dependency.
(Inherited from CachingBackend.)
Protected methodContainsDependencyAsyncCore
Asynchronously determines whether the cache contains a given dependency. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CachingBackendEnhancer.)
Protected methodContainsDependencyCore
Determines whether the cache contains a given dependency. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CachingBackendEnhancer.)
Public methodContainsItem
Determines whether the cache contains an item of a given key.
(Inherited from CachingBackend.)
Public methodContainsItemAsync
Asynchronously determines whether the cache contains an item of a given key.
(Inherited from CachingBackend.)
Protected methodContainsItemAsyncCore
Asynchronously determines whether the cache contains an item of a given key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CachingBackendEnhancer.)
Protected methodContainsItemCore
Determines whether the cache contains an item of a given key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CachingBackendEnhancer.)
Public methodStatic memberCreate
Creates a new AzureCacheInvalidator.
Public methodStatic memberCreateAsync
Asynchronously creates a new AzureCacheInvalidator.
Protected methodCreateFeatures
Creates a CachingBackendFeatures object, which describes set of features implemented by the back-end. This method is invoked the first time the SupportedFeatures property is evaluated. The result is then cached.
(Inherited from CachingBackendEnhancer.)
Public methodDispose()
Synchronously dispose the current CachingBackend.
(Inherited from CachingBackend.)
Protected methodDispose(Boolean) (Inherited from CachingBackend.)
Public methodDisposeAsync
Asynchronously dispose the current CachingBackend.
(Inherited from CachingBackend.)
Protected methodDisposeAsyncCore
Asynchronously disposes the current CachingBackend. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked.
(Overrides CachingBackendEnhancer.DisposeAsyncCore(CancellationToken).)
Protected methodDisposeCore
Synchronously disposes the current CachingBackend. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked.
(Overrides CachingBackendEnhancer.DisposeCore(Boolean).)
Protected methodEnqueueBackgroundTask Obsolete. (Inherited from CachingBackend.)
Protected methodFinalize
Destructor.
(Overrides Object.Finalize().)
Public methodGetItem
Gets a cache item given its key.
(Inherited from CachingBackend.)
Public methodGetItemAsync
Asynchronously gets a cache item given its key.
(Inherited from CachingBackend.)
Protected methodGetItemAsyncCore
Asynchronously gets a cache item given its key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CachingBackendEnhancer.)
Protected methodGetItemCore
Gets a cache item given its key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CachingBackendEnhancer.)
Public methodInvalidateDependency
Removes from the cache all items that have a specific dependency.
(Inherited from CachingBackend.)
Public methodInvalidateDependencyAsync
Asynchronously removes from the cache all items that have a specific dependency. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CachingBackend.)
Protected methodInvalidateDependencyAsyncCore
Asynchronously removes from the cache all items that have a specific dependency. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CacheInvalidator.)
Protected methodInvalidateDependencyCore
Removes from the cache all items that have a specific dependency. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CacheInvalidator.)
Protected methodOnBackendDependencyInvalidated
Method invoked when the DependencyInvalidated event of the next UnderlyingBackend in the chain of responsibility is invoked.
(Inherited from CachingBackendEnhancer.)
Protected methodOnBackendItemRemoved
Method invoked when the ItemRemoved event of the next UnderlyingBackend in the chain of responsibility is invoked.
(Inherited from CachingBackendEnhancer.)
Protected methodOnDependencyInvalidated(CacheDependencyInvalidatedEventArgs) (Inherited from CachingBackend.)
Protected methodOnDependencyInvalidated(String, Guid)
Raises the DependencyInvalidated event , but lazily instantiates the CacheDependencyInvalidatedEventArgs if there is an event client.
(Inherited from CachingBackend.)
Protected methodOnItemRemoved(CacheItemRemovedEventArgs)
Raises the ItemRemoved event given a CacheItemRemovedEventArgs.
(Inherited from CachingBackend.)
Protected methodOnItemRemoved(String, CacheItemRemovedReason, Guid)
Raises the ItemRemoved event, but lazily instantiates the CacheItemRemovedEventArgs if there is an event client.
(Inherited from CachingBackend.)
Protected methodOnMessageReceived
Implementations of CacheInvalidator must call this method when an invalidation message is received.
(Inherited from CacheInvalidator.)
Protected methodOnSynchronizationSignalReceived Obsolete.
Signals that a specific synchronization signal has been received. This completes the Task returned by the WhenSynchronizationSignalReceived(Guid, CancellationToken) method.
(Inherited from CachingBackend.)
Public methodRemoveItem
Removes a cache item from the cache given its key.
(Inherited from CachingBackend.)
Public methodRemoveItemAsync
Asynchronously removes a cache item from the cache given its key.
(Inherited from CachingBackend.)
Protected methodRemoveItemAsyncCore
Asynchronously removes a cache item from the cache given its key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CacheInvalidator.)
Protected methodRemoveItemCore
Removes a cache item from the cache given its key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CacheInvalidator.)
Protected methodSendMessageAsync
Sends an invalidation message over the message bus of the implementation.
(Overrides CacheInvalidator.SendMessageAsync(String, CancellationToken).)
Public methodSendSynchronizationSignalAsync Obsolete.
Sends a synchronization signal of a given Guid to the physical implementation of the cache.
(Inherited from CachingBackend.)
Protected methodSendSynchronizationSignalAsyncCore Obsolete.
Sends a synchronization signal of a given Guid to the physical implementation of the cache. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked.
(Inherited from CacheInvalidator.)
Public methodSetItem
Sets a cache item.
(Inherited from CachingBackend.)
Public methodSetItemAsync
Asynchronously sets a cache item.
(Inherited from CachingBackend.)
Protected methodSetItemAsyncCore
Asynchronously sets a cache item. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API. The default implementation is to call the synchronous SetItemCore(String, CacheItem) method.
(Inherited from CachingBackendEnhancer.)
Protected methodSetItemCore
Sets a cache item. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.
(Inherited from CachingBackendEnhancer.)
Protected methodStopAcceptingBackgroundTasks Obsolete.
Forbids the use of the EnqueueBackgroundTask(Func<Task>) method. This method is used for debugging purposes only.
(Inherited from CachingBackend.)
Public methodToString
Returns a string that represents the current object.
(Inherited from CachingBackend.)
Public methodWhenBackgroundTasksCompleted Obsolete. (Inherited from CachingBackend.)
Public methodWhenSynchronizationSignalReceived Obsolete.
Returns a Task that completes when a given synchronization signal is received from the physical implementation of the cache.
(Inherited from CachingBackendEnhancer.)
Events
  NameDescription
Public eventDependencyInvalidated
Events raised when a dependency is invalidated. Check the Events property to see if the current CachingBackend supports events.
(Inherited from CachingBackend.)
Public eventItemRemoved
Event raised when a cache item is removed from the cache. Check the Events property to see if the current CachingBackend supports events.
(Inherited from CachingBackend.)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also