Düzenle

Aracılığıyla paylaş


IGrainBase.OnDeactivateAsync(DeactivationReason, CancellationToken) Method

Definition

Method overridden by grain implementations to handle deactivation.

public virtual System.Threading.Tasks.Task OnDeactivateAsync (Orleans.DeactivationReason reason, System.Threading.CancellationToken token);
abstract member OnDeactivateAsync : Orleans.DeactivationReason * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnDeactivateAsync : Orleans.DeactivationReason * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function OnDeactivateAsync (reason As DeactivationReason, token As CancellationToken) As Task

Parameters

reason
DeactivationReason

The reason for deactivation.

token
CancellationToken

The cancellation token used to signify that deactivation should complete promptly.

Returns

A Task which represents the operation.

Applies to