Sdílet prostřednictvím


ISolutionCacheService.PrefetchContainerAsync Method

Definition

Ensures that container contents are prefetched to local cache.

public:
 System::Threading::Tasks::Task<bool> ^ PrefetchContainerAsync(Microsoft::VisualStudio::RpcContracts::Caching::CacheContainerKey ^ containerKey, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> PrefetchContainerAsync (Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey containerKey, System.Threading.CancellationToken cancellationToken);
abstract member PrefetchContainerAsync : Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function PrefetchContainerAsync (containerKey As CacheContainerKey, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

containerKey
CacheContainerKey

Cache container key that describes the container.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

a Task indication completion of prefetch, false is returned if container was not found in the cache.

Exceptions

Thrown when caller has no write permissions.

Applies to