Constructor DueReminder
- Namespace
- MailFathom.Application.Reminders
- Assembly
- MailFathom.Application.dll
DueReminder(UserId, ReminderSubject, Guid, string, Reminder, DateTimeOffset)
One reminder that has come due, with everything announcing it takes and nothing else.
public DueReminder(UserId Owner, ReminderSubject Subject, Guid Identity, string Headline, Reminder Reminder, DateTimeOffset DueAt)
Parameters
OwnerUserIdThe person whose record the reminder is on.
SubjectReminderSubjectWhich kind of record it is on.
IdentityGuidWhat addresses that record.
HeadlinestringWhat that record is called.
ReminderReminderThe lead the person set.
DueAtDateTimeOffsetThe instant that lead falls at, as the record now stands.
Remarks
The headline travels here because the notification's own headline is what the thing is called, and reading the event or the task a second time to learn it would be one query per reminder. Nothing else about that record does: the run has no use for an event's origin or a task's completion, and a record that carried them would be a second copy of the calendar and the task list passing through a background pass.
Subject is what decides the shape of the notification — its kind, what it leads to, and the name its deduplication key is written under — and Identity is the record it is about within that kind. The two are kept apart from the headline so that composing the notification stays one reading of a closed set rather than a guess at which identifier happens to be present.
DueAt is the instant the reminder falls at as the record now stands, which is what the claim is made against — so a reader holding one of these is holding the answer to which occurrence it is announcing rather than only which reminder.
The headline is personal data and the owner is who it belongs to. Neither is logged, made a metric dimension, or put into a failure message; Identity is what a failure names.