Redigera

Dela via


GrainContextExtensions.DeactivateAsync Method

Definition

Overloads

DeactivateAsync(IGrainContext, DeactivationReason, Nullable<CancellationToken>)

Deactivates the provided grain.

DeactivateAsync(IGrainContext, DeactivationReason, CancellationToken)

Deactivates the provided grain.

DeactivateAsync(IGrainContext, DeactivationReason, Nullable<CancellationToken>)

Deactivates the provided grain.

public static System.Threading.Tasks.Task DeactivateAsync (this Orleans.Runtime.IGrainContext grainContext, Orleans.DeactivationReason deactivationReason, System.Threading.CancellationToken? cancellationToken = default);
static member DeactivateAsync : Orleans.Runtime.IGrainContext * Orleans.DeactivationReason * Nullable<System.Threading.CancellationToken> -> System.Threading.Tasks.Task
<Extension()>
Public Function DeactivateAsync (grainContext As IGrainContext, deactivationReason As DeactivationReason, Optional cancellationToken As Nullable(Of CancellationToken) = Nothing) As Task

Parameters

grainContext
IGrainContext

The grain context.

deactivationReason
DeactivationReason

The deactivation reason.

cancellationToken
Nullable<CancellationToken>

A cancellation token which when canceled, indicates that the process should complete promptly.

Returns

A Task which will complete once the grain has deactivated.

Applies to

DeactivateAsync(IGrainContext, DeactivationReason, CancellationToken)

Deactivates the provided grain.

public static System.Threading.Tasks.Task DeactivateAsync (this Orleans.Runtime.IGrainContext grainContext, Orleans.DeactivationReason deactivationReason, System.Threading.CancellationToken cancellationToken = default);
static member DeactivateAsync : Orleans.Runtime.IGrainContext * Orleans.DeactivationReason * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function DeactivateAsync (grainContext As IGrainContext, deactivationReason As DeactivationReason, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

grainContext
IGrainContext

The grain context.

deactivationReason
DeactivationReason

The deactivation reason.

cancellationToken
CancellationToken

A cancellation token which when canceled, indicates that the process should complete promptly.

Returns

A Task which will complete once the grain has deactivated.

Applies to