Table of Contents

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

draftId MailDraftId

The draft whose copy went out of reach.

reason MailDraftDivergenceReason

Which fact took it out of reach.

observedAt DateTimeOffset

When the attempt found it out.

cancellationToken CancellationToken

Cancels 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.