MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​BackendsCaching­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.

Declaration
protected virtual ValueTask<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
System.Threading.Tasks.ValueTask<System.Boolean>

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