MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​BackendsCaching­BackendOn­Dependency­Invalidated
Open sandboxFocus

CachingBackend.OnDependencyInvalidated Method

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
System.String key

The key of the removed cache item.

System.Guid sourceId

The System.Guid of the CachingBackend instance that removed the item,. or System.Guid.Empty if the source CachingBackend cannot be determined.

OnDependencyInvalidated(CacheDependencyInvalidatedEventArgs)

Declaration
protected void OnDependencyInvalidated(CacheDependencyInvalidatedEventArgs args)
Parameters
Type Name Description
CacheDependencyInvalidatedEventArgs args

A CacheDependencyInvalidatedEventArgs.