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

CachingBackend.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.

protected virtual Task<bool> ContainsDependencyAsyncCore(string key, CancellationToken cancellationToken)
Type Name Description
String key

The dependency key.

CancellationToken cancellationToken

A CancellationToken.

Type Description

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