Constructor MailboxExport
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
MailboxExport(MailboxExportId, MailAccountId, string?, MailboxExportState, DateTimeOffset, long, long, long?, string?, DateTimeOffset?, DateTimeOffset?, MailFathomErrorCode?)
One export of a mailbox: what was asked for, where it stands, and what became of its archive.
public MailboxExport(MailboxExportId Id, MailAccountId Account, string? FolderPath, MailboxExportState State, DateTimeOffset RequestedAt, long MessageCount, long ByteCount, long? ArchiveByteLength, string? ObjectLocator, DateTimeOffset? CompletedAt, DateTimeOffset? ExpiresAt, MailFathomErrorCode? FailureCode)
Parameters
IdMailboxExportIdThe identity a caller follows, downloads, cancels, and deletes the export by.
AccountMailAccountIdThe account whose mail is being carried out.
FolderPathstringThe one folder the export covers, or null when it covers the whole mailbox.
StateMailboxExportStateWhere the export stands.
RequestedAtDateTimeOffsetWhen the export was asked for.
MessageCountlongHow many messages have reached the archive, and the final count once it is written.
ByteCountlongHow many bytes of stored mail those messages carried, before the archive's own overhead.
ArchiveByteLengthlong?How large the finished archive is, or null while there is none.
ObjectLocatorstringThe content store's key for the archive, or null once there is nothing to serve.
CompletedAtDateTimeOffset?When the archive was finished, absent until it was.
ExpiresAtDateTimeOffset?When the archive is deleted if nobody deletes it first, absent until it exists.
FailureCodeMailFathomErrorCode?The stable code of what stopped a failed export, absent for every other state.
Remarks
The locator is the deployment's own, never a caller's: a download is served by reading it here and streaming the object, so no response ever carries a key and no caller can name an object of its own.
The counts are the export's own progress rather than the measurement that preceded it. The measurement is an estimate taken before any job existed; these are what was actually written, which is what an operator compares against it when a mailbox grew while the archive was being produced.