PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Caching.​Implementation Namespace/Caching­Backend Class/Caching­Backend Methods/Caching­Backend.​On­Dependency­Invalidated Method/Caching­Backend.​On­Dependency­Invalidated Method (String, Guid)

CachingBackend.OnDependencyInvalidated Method (String, Guid)

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

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
protected void OnDependencyInvalidated(
	string key,
	Guid sourceId
)

Parameters

key
Type: System.String
The key of the removed cache item.
sourceId
Type: System.Guid
The Guid of the CachingBackend instance that removed the item,. or Empty if the source CachingBackend cannot be determined.
See Also