PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCaching­Backend­EnhancerContains­Dependency­Async­Core
Open sandboxFocus

CachingBackendEnhancer.ContainsDependencyAsyncCore Method

ContainsDependencyAsyncCore(String, CancellationToken)

Asynchronously determines whether the cache contains a given 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<bool> ContainsDependencyAsyncCore(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
Task<Boolean>

A System.Threading.Tasks.Task evaluating to true if the cache contains the dependency key, otherwise false.

Overrides
CachingBackend.ContainsDependencyAsyncCore(String, CancellationToken)