Method RecordDivergenceAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
RecordDivergenceAsync(MailDraftId, MailDraftDivergenceReason, DateTimeOffset, CancellationToken)
Records that the tracked copy stopped being one MailFathom may replace or remove.
Task RecordDivergenceAsync(MailDraftId draftId, MailDraftDivergenceReason reason, DateTimeOffset observedAt, CancellationToken cancellationToken)
Parameters
draftIdMailDraftIdThe draft whose copy went out of reach.
reasonMailDraftDivergenceReasonWhich fact took it out of reach.
observedAtDateTimeOffsetWhen the attempt found it out.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes when the divergence is on the record.
Remarks
It takes no session and moves no stage, for the reason a filing failure does not: the draft itself is unharmed and its author's next edit still has to be stored, so this is written beside the draft rather than over it.