# IReminderRegistry.RegisterOrUpdateReminder(GrainId, string, TimeSpan, TimeSpan, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleans.timers.ireminderregistry/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleans.timers.ireminderregistry/methods/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Reminders/Timers/IReminderRegistry.cs#L38)

```csharp
public virtual Task<IGrainReminder> RegisterOrUpdateReminder(GrainId callingGrainId, string reminderName, TimeSpan dueTime, TimeSpan period, CancellationToken cancellationToken)
```

Registers or updates a reminder for the specified grain.

### Parameters

- `callingGrainId` (`GrainId`): The ID of the currently executing grain.
- `reminderName` (`string`): The reminder name.
- `dueTime` (`TimeSpan`): The amount of time to delay before initially invoking the reminder.
- `period` (`TimeSpan`): The time interval between invocations of the reminder.
- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

The reminder.
