Share via


IResettableService.ResetStateAsync(CancellationToken) Method

Definition

Resets the service so that it can be used from the pool.

public System.Threading.Tasks.Task ResetStateAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member ResetStateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ResetStateAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

A task that represents the asynchronous operation.

Exceptions

Applies to