Przeczytaj w języku angielskim Edytuj

Udostępnij za pośrednictwem


GrainBaseExtensions.MigrateOnIdle(IGrainBase) Method

Definition

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 static void MigrateOnIdle (this Orleans.IGrainBase grain);
static member MigrateOnIdle : Orleans.IGrainBase -> unit
<Extension()>
Public Sub MigrateOnIdle (grain As IGrainBase)

Parameters

grain
IGrainBase

Applies to