dotnet-sdk
dotnet-sdk copied to clipboard
Add support for ISO 8601 intervals
Describe the proposal
Runtime has added support for ISO 8601 intervals for reminders as per https://github.com/dapr/dapr/issues/2513. Make changes to SDK to support accordingly
/assign
@jigargandhi - what's the user-visible impact of this? The format that we use to register reminders is an implementation detail. users work with .NET types like TimeSpan
.
Apologies if the title/description is misleading
The goal here is to provide reminders with repetitions.
The current api for an Actor to register a reminder is
protected async Task<IActorReminder> RegisterReminderAsync(string reminderName, byte[] state, TimeSpan dueTime, TimeSpan period)
To support reminders with repetitions, we can add an overload
protected async Task<IActorReminder> RegisterReminderAsync(string reminderName, byte[] state, TimeSpan dueTime, TimeSpan period, uint repetitions)
The reminders api do provide ability to create reminders using ISO 8601 intervals, but I think we can add that later if users want to create intervals with that format. This may be because they might get that interval from an external systems.
/assign
@halspang Do you want to add this to 1.10 ?