Open sandboxFocus

Method ContainsDependencyAsyncCore

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
string key

The dependency key.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
Task<bool>

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

Overrides