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.10.10.0 (6.10.10.0)
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.