Table of Contents

Method OfLocalAct

Namespace
MailFathom.Domain.Mutations.Audit
Assembly
MailFathom.Domain.dll

OfLocalAct(MailboxMutationAuditEntryId, MailboxMutationRecordId, MailboxMutationRequest, MailFolderResolution, DateTimeOffset)

Writes the entry a change committed to stored state on a held account leaves behind.

public static MailboxMutationAuditEntry OfLocalAct(MailboxMutationAuditEntryId id, MailboxMutationRecordId actId, MailboxMutationRequest request, MailFolderResolution sourceFolder, DateTimeOffset committedAt)

Parameters

id MailboxMutationAuditEntryId

The identity the entry is addressed by.

actId MailboxMutationRecordId

The identity of the act itself, which no mutation record carries because none was written.

request MailboxMutationRequest

The change that was committed.

sourceFolder MailFolderResolution

The binding the message's occurrence names, which supplies the source path.

committedAt DateTimeOffset

When the change committed, which is both when it was asked for and when it ended.

Returns

MailboxMutationAuditEntry

The entry to append in the same transaction as the change.

Remarks

A local act has no stage to end in and cannot be abandoned: the transaction either committed it or did not, so the entry is always a performed change placed nowhere a server reported. It is the same entry a remote change leaves, which is what keeps the trail free of a hole where a change stopped reaching a server.

Exceptions

ArgumentNullException

Thrown when request or sourceFolder is null.

ArgumentException

Thrown when sourceFolder is not the binding the request's occurrence names.