Grain.OnDeactivateAsync Method

Definition

Overloads

OnDeactivateAsync()

This method is called at the begining of the process of deactivating a grain.

OnDeactivateAsync(DeactivationReason, CancellationToken)

This method is called at the beginning of the process of deactivating a grain.

OnDeactivateAsync()

Source:
Grain.cs

This method is called at the begining of the process of deactivating a grain.

public virtual System.Threading.Tasks.Task OnDeactivateAsync ();
abstract member OnDeactivateAsync : unit -> System.Threading.Tasks.Task
override this.OnDeactivateAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function OnDeactivateAsync () As Task

Returns

Applies to

OnDeactivateAsync(DeactivationReason, CancellationToken)

This method is called at the beginning of the process of deactivating a grain.

public virtual System.Threading.Tasks.Task OnDeactivateAsync (Orleans.DeactivationReason reason, System.Threading.CancellationToken cancellationToken);
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, cancellationToken As CancellationToken) As Task

Parameters

reason
DeactivationReason

The reason for deactivation. Informational only.

cancellationToken
CancellationToken

A cancellation token which signals when deactivation should complete promptly.

Returns

Implements

Applies to