Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Grain.RegisterOrUpdateReminder(String, TimeSpan, TimeSpan) Method

Definition

Namespace:
Orleans
Assembly:
Orleans.dll
Assembly:
Orleans.Core.Abstractions.dll
Package:
Microsoft.Orleans.Core v1.5.10
Package:
Microsoft.Orleans.Core.Abstractions v2.4.5
Package:
Microsoft.Orleans.Core.Abstractions v3.6.5
Source:
Grain.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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