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

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.1.23.0 (6.1.23.0)
Syntax
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.
See Also