Table of Contents

Method RecordSourceRemovalObservedAsync

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

RecordSourceRemovalObservedAsync(IPersistenceSession, MailboxMutationRecordId, DateTimeOffset, CancellationToken)

Writes down that the source occurrence a mutation removed has been seen to leave its folder.

Task RecordSourceRemovalObservedAsync(IPersistenceSession session, MailboxMutationRecordId recordId, DateTimeOffset observedAt, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The session the write joins, which is the one the window's outcome is applied in.

recordId MailboxMutationRecordId

The record the disappearance was attributed to.

observedAt DateTimeOffset

When the window read the folder.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes when the observation is written.

Remarks

The first observation is kept, because what it says is when the disappearance was first accounted for.

Exceptions

ArgumentNullException

Thrown when session is null.

InvalidOperationException

Thrown when no record carries recordId.