Method MarkRaisedAsync
- Namespace
- MailFathom.Application.Reminders
- Assembly
- MailFathom.Application.dll
MarkRaisedAsync(DueReminder, CancellationToken)
Records that one reminder was announced for the instant it currently falls at.
Task<bool> MarkRaisedAsync(DueReminder due, CancellationToken cancellationToken)
Parameters
dueDueReminderThe reminder as it was read, which names the instant the claim is made against.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<bool>
true when this call is what recorded it; false when the reminder is gone or already stands announced for that instant.
Remarks
Conditional on the instant rather than unconditional, so two replicas reading one pass at the same time is the ordinary case it is meant to be: the one that loses is told so and writes nothing.
Exceptions
- ArgumentNullException
Thrown when
dueis null.