RegisterGrainTimer(IGrainContext, Func<TState, CancellationToken, Task>, TState, GrainTimerCreationOptions)
abstract
public abstract IGrainTimer RegisterGrainTimer<TState>(IGrainContext grainContext, Func<TState, CancellationToken, Task> callback, TState state, GrainTimerCreationOptions options) Creates a grain timer.
Parameters
grainContextIGrainContext- The grain which the timer is associated with.
callbackFunc<TState, CancellationToken, Task>- The timer callback, which will be invoked whenever the timer becomes due.
stateTState- The state passed to the callback.
optionsGrainTimerCreationOptions- The options for creating the timer.
Returns
The
IGrainTimer instance which represents the timer. 