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