RegisterOrUpdateReminder(Grain, string, TimeSpan, TimeSpan)
staticextension
public static Task<IGrainReminder> RegisterOrUpdateReminder(this Grain grain, string reminderName, TimeSpan dueTime, TimeSpan period) Registers a persistent, reliable reminder to send regular notifications (reminders) to the grain. The grain must implement the
Orleans.IRemindable interface, and reminders for this grain will be sent to the ReceiveReminder callback method. If the current grain is deactivated when the timer fires, a new activation of this grain will be created to receive this reminder. If an existing reminder with the same name already exists, that reminder will be overwritten with this new reminder. Reminders will always be received by one activation of this grain, even if multiple activations exist for this grain. Parameters
grainGrain- The grain instance.
reminderNamestring- Name of this reminder
dueTimeTimeSpan- Due time for this reminder
periodTimeSpan- Frequency period for this reminder
Returns
Promise for Reminder handle.
