GrainBaseExtensions
class
Namespace: Orleans
Helper methods for
IGrainBase implementations. public static class GrainBaseExtensionsMethods
DeactivateOnIdle(IGrainBase)Deactivate this grain activation after the current grain method call is completed. This call will mark this activation of the current grain to be deactivated and removed at the end of the current method. The next call to this grain will result in a different activation to be used, which typical means a new activation will be created automatically by the runtime.MigrateOnIdle(IGrainBase)Starts an attempt to migrating this instance to another location. Migration captures the currentRequestContext, 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.RegisterGrainTimer(IGrainBase, Func<CancellationToken, Task>, GrainTimerCreationOptions)Creates a grain timer.RegisterGrainTimer(IGrainBase, Func<CancellationToken, Task>, TimeSpan, TimeSpan)Creates a grain timer.RegisterGrainTimer(IGrainBase, Func<Task>, GrainTimerCreationOptions)RegisterGrainTimer(IGrainBase, Func<Task>, TimeSpan, TimeSpan)Creates a grain timer.RegisterGrainTimer(IGrainBase, Func<TState, CancellationToken, Task>, TState, GrainTimerCreationOptions)Creates a grain timer.RegisterGrainTimer(IGrainBase, Func<TState, CancellationToken, Task>, TState, TimeSpan, TimeSpan)Creates a grain timer.RegisterGrainTimer(IGrainBase, Func<TState, Task>, TState, GrainTimerCreationOptions)RegisterGrainTimer(IGrainBase, Func<TState, Task>, TState, TimeSpan, TimeSpan)Creates a grain timer.
