DiskBasedResponseCacheProvider.GetCacheAsync Método

Definição

Retorna e IDistributedCache que armazena em cache todas as respostas da IA associadas ao ScenarioRun com o fornecido scenarioName e iterationName.

public System.Threading.Tasks.ValueTask<Microsoft.Extensions.Caching.Distributed.IDistributedCache> GetCacheAsync(string scenarioName, string iterationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCacheAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.Extensions.Caching.Distributed.IDistributedCache>
override this.GetCacheAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.Extensions.Caching.Distributed.IDistributedCache>
Public Function GetCacheAsync (scenarioName As String, iterationName As String, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of IDistributedCache)

Parâmetros

scenarioName
String

O ScenarioName.

iterationName
String

O IterationName.

cancellationToken
CancellationToken

Isso CancellationToken pode cancelar a operação.

Devoluções

E IDistributedCache que armazena em cache todas as respostas de IA associadas ao ScenarioRun fornecido scenarioName e iterationName.

Implementações

Aplica-se a