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

Parameters

cancellationToken
System.Threading.CancellationToken

The token to monitor for cancellation requests.

Returns

System.Threading.Tasks.Task

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