Table of Contents

Method RecordWithdrawnAsync

Namespace
MailFathom.Application.Mail.Delivery.Filing
Assembly
MailFathom.Application.dll

RecordWithdrawnAsync(IPersistenceSession, OutgoingEmailId, OutgoingMailFiling, DateTimeOffset, CancellationToken)

Writes down that the copy has been taken back out of its folder.

Task RecordWithdrawnAsync(IPersistenceSession session, OutgoingEmailId outgoingEmailId, OutgoingMailFiling filing, DateTimeOffset withdrawnAt, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The session the write joins.

outgoingEmailId OutgoingEmailId

The record the copy was filed from.

filing OutgoingMailFiling

Which place the copy was in.

withdrawnAt DateTimeOffset

When the folder stopped holding it.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes when the row is marked withdrawn.

Exceptions

ArgumentNullException

Thrown when session is null.

InvalidOperationException

Thrown when no row carries that identity.