Table of Contents

Method PlacementIssuedAsync

Namespace
MailFathom.Application.Mail.Mutations
Assembly
MailFathom.Application.dll

PlacementIssuedAsync(bool, CancellationToken)

Records that the command placing the email in its destination folder is about to be issued.

Task PlacementIssuedAsync(bool requiresSourceRemoval, CancellationToken cancellationToken)

Parameters

requiresSourceRemoval bool

true when the command leaves the source in place and a separate removal will be owed; false when it removes the source itself.

cancellationToken CancellationToken

Cancels the durable write.

Returns

Task

A task that completes once the stage is durable.

Remarks

It is announced before the command rather than after it, because the stage exists for the crash that happens while the command is in flight. A mutation found here is never issued again. The answer travels with the announcement because it is decided by the same choice that picked the command, and a later attempt has no way to recover it.