Edit

Share via


IGrainContext.Migrate Method

Definition

Overloads

Migrate(Dictionary<String,Object>, Nullable<CancellationToken>)

Starts an attempt to migrating this instance to another ___location. Migration captures the current RequestContext, making it available to the activation's placement director so that it can consider it when selecting a new ___location. Migration will occur asynchronously, when no requests are executing, and will not occur if the activation's placement director does not select an alternative ___location.

Migrate(Dictionary<String,Object>, CancellationToken)

Starts an attempt to migrating this instance to another ___location. Migration captures the current RequestContext, making it available to the activation's placement director so that it can consider it when selecting a new ___location. Migration will occur asynchronously, when no requests are executing, and will not occur if the activation's placement director does not select an alternative ___location.

Migrate(Dictionary<String,Object>, Nullable<CancellationToken>)

Starts an attempt to migrating this instance to another ___location. Migration captures the current RequestContext, making it available to the activation's placement director so that it can consider it when selecting a new ___location. Migration will occur asynchronously, when no requests are executing, and will not occur if the activation's placement director does not select an alternative ___location.

public void Migrate(System.Collections.Generic.Dictionary<string,object> requestContext, System.Threading.CancellationToken? cancellationToken = default);
abstract member Migrate : System.Collections.Generic.Dictionary<string, obj> * Nullable<System.Threading.CancellationToken> -> unit
Public Sub Migrate (requestContext As Dictionary(Of String, Object), Optional cancellationToken As Nullable(Of CancellationToken) = Nothing)

Parameters

requestContext
Dictionary<String,Object>

The request context, which is provided to the placement director so that it can be examined when selecting a new ___location.

cancellationToken
Nullable<CancellationToken>

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

Applies to

Migrate(Dictionary<String,Object>, CancellationToken)

Starts an attempt to migrating this instance to another ___location. Migration captures the current RequestContext, making it available to the activation's placement director so that it can consider it when selecting a new ___location. Migration will occur asynchronously, when no requests are executing, and will not occur if the activation's placement director does not select an alternative ___location.

public void Migrate(System.Collections.Generic.Dictionary<string,object>? requestContext, System.Threading.CancellationToken cancellationToken = default);
abstract member Migrate : System.Collections.Generic.Dictionary<string, obj> * System.Threading.CancellationToken -> unit
Public Sub Migrate (requestContext As Dictionary(Of String, Object), Optional cancellationToken As CancellationToken = Nothing)

Parameters

requestContext
Dictionary<String,Object>

The request context, which is provided to the placement director so that it can be examined when selecting a new ___location.

cancellationToken
CancellationToken

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

Applies to