Edit

Share via


Grain.RegisterOrUpdateReminder(String, TimeSpan, TimeSpan) Method

Definition

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.

protected virtual System.Threading.Tasks.Task<Orleans.Runtime.IGrainReminder> RegisterOrUpdateReminder (string reminderName, TimeSpan dueTime, TimeSpan period);
protected System.Threading.Tasks.Task<Orleans.Runtime.IGrainReminder> RegisterOrUpdateReminder (string reminderName, TimeSpan dueTime, TimeSpan period);
abstract member RegisterOrUpdateReminder : string * TimeSpan * TimeSpan -> System.Threading.Tasks.Task<Orleans.Runtime.IGrainReminder>
override this.RegisterOrUpdateReminder : string * TimeSpan * TimeSpan -> System.Threading.Tasks.Task<Orleans.Runtime.IGrainReminder>
member this.RegisterOrUpdateReminder : string * TimeSpan * TimeSpan -> System.Threading.Tasks.Task<Orleans.Runtime.IGrainReminder>
Protected Overridable Function RegisterOrUpdateReminder (reminderName As String, dueTime As TimeSpan, period As TimeSpan) As Task(Of IGrainReminder)
Protected Function RegisterOrUpdateReminder (reminderName As String, dueTime As TimeSpan, period As TimeSpan) As Task(Of IGrainReminder)

Parameters

reminderName
String

Name of this reminder

dueTime
TimeSpan

Due time for this reminder

period
TimeSpan

Frequence period for this reminder

Returns

Promise for Reminder handle.

Applies to