PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCaching­BackendOn­Dependency­Invalidated
Open sandboxFocus

CachingBackend.OnDependencyInvalidated Method

OnDependencyInvalidated(String, Guid)

Raises the DependencyInvalidated event , but lazily instantiates the CacheDependencyInvalidatedEventArgs if there is an event client.

Declaration
protected void OnDependencyInvalidated([Required] string key, Guid sourceId)
Parameters
Type Name Description
System.String key

The key of the removed cache item.

System.Guid sourceId

The System.Guid of the CachingBackend instance that removed the item,. or Empty if the source CachingBackend cannot be determined.

OnDependencyInvalidated(CacheDependencyInvalidatedEventArgs)

Declaration
protected void OnDependencyInvalidated([Required] CacheDependencyInvalidatedEventArgs args)
Parameters
Type Name Description
CacheDependencyInvalidatedEventArgs args

A CacheDependencyInvalidatedEventArgs.