PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​BackendsNon­Blocking­Caching­Backend­EnhancerInvalidate­Dependency­Async­Core
Open sandboxFocus

NonBlockingCachingBackendEnhancer.InvalidateDependencyAsyncCore Method

InvalidateDependencyAsyncCore(String, CancellationToken)

Asynchronously removes from the cache all items that have a specific dependency. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.

Declaration
protected override Task InvalidateDependencyAsyncCore(string key, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String key

The dependency key.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task.

Overrides
CachingBackendEnhancer.InvalidateDependencyAsyncCore(String, CancellationToken)