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
idMailboxMutationAuditEntryIdThe identity the entry is addressed by.
actIdMailboxMutationRecordIdThe identity of the act itself, which no mutation record carries because none was written.
requestMailboxMutationRequestThe change that was committed.
sourceFolderMailFolderResolutionThe binding the message's occurrence names, which supplies the source path.
committedAtDateTimeOffsetWhen 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
requestorsourceFolderis null.- ArgumentException
Thrown when
sourceFolderis not the binding the request's occurrence names.