共用方式為


IStateProviderReplica.CloseAsync(CancellationToken) Method

Definition

Gracefully close the state provider replica.

public System.Threading.Tasks.Task CloseAsync (System.Threading.CancellationToken cancellationToken);
abstract member CloseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CloseAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

Task that represents the asynchronous close operation.

Remarks

This generally occurs when the replica's code is being upgrade, the replica is being moved due to load balancing, or a transient fault is detected.

Applies to