Skip to content

IReminderService.RegisterOrUpdateReminder(GrainId, string, TimeSpan, TimeSpan, CancellationToken)

RegisterOrUpdateReminder(GrainId, string, TimeSpan, TimeSpan, CancellationToken)

virtual
View source
[Orleans.Alias(1281C86D)]
public virtual Task<IGrainReminder> RegisterOrUpdateReminder(GrainId grainId, string reminderName, TimeSpan dueTime, TimeSpan period, CancellationToken cancellationToken)
Registers a new reminder or updates an existing one.

Parameters

grainIdGrainId
A reference to the grain which the reminder is being registered or updated on behalf of.
reminderNamestring
The reminder name.
dueTimeTimeSpan
The amount of time to delay before firing the reminder initially.
periodTimeSpan
The time interval between invocations of the reminder.
cancellationTokenCancellationToken
The cancellation token.

Returns

The reminder.