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

CachingBackend.ContainsDependencyAsync Method

ContainsDependencyAsync(String, CancellationToken)

Asynchronously determines whether the cache contains a given dependency.

Declaration
public Task<bool> ContainsDependencyAsync([Required] string key, CancellationToken cancellationToken = null)
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.