IGrainContext.Migrate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.