Condividi tramite


AgentChannel.ResetAsync(CancellationToken) Method

Definition

Reset any persistent state associated with the channel.

protected internal abstract System.Threading.Tasks.Task ResetAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member ResetAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Friend MustOverride Function ResetAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Remarks

The channel wont' be reused; rather, it will be discarded and a new one created.

Applies to