CachingBackend.OnItemRemoved Method (String, CacheItemRemovedReason, Guid) |
Raises the ItemRemoved event, but lazily instantiates the CacheItemRemovedEventArgs
if there is an event client.
Namespace: PostSharp.Patterns.Caching.Implementation
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.8.6.0 (6.8.6.0)
C#
protected void OnItemRemoved( string key, CacheItemRemovedReason reason, Guid sourceId )
Parameters
- key
- Type: System.String
The key of the removed cache item. - reason
- Type: PostSharp.Patterns.Caching.Implementation.CacheItemRemovedReason
The reason of the removal. - sourceId
- Type: System.Guid
The Guid of the CachingBackend instance that removed the item,. or Empty if the source CachingBackend cannot be determined.