OnItemRemoved(CacheItemRemovedEventArgs)
Raises the ItemRemoved event given a CacheItemRemovedEventArgs.
Declaration
protected void OnItemRemoved(CacheItemRemovedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
CacheItemRemovedEventArgs | args | Event arguments. |
OnItemRemoved(string, CacheItemRemovedReason, Guid)
Raises the ItemRemoved event, but lazily instantiates the CacheItemRemovedEventArgs if there is an event client.
Declaration
protected void OnItemRemoved(string key, CacheItemRemovedReason reason, Guid sourceId)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the removed cache item. |
CacheItemRemovedReason | reason | The reason of the removal. |
Guid | sourceId | The Guid of the CachingBackend instance that removed the item,. or Empty if the source CachingBackend cannot be determined. |