Method InDatabase
- Namespace
- MailFathom.Application.EmailContent.Storage
- Assembly
- MailFathom.Application.dll
InDatabase(ReadOnlyMemory<byte>)
Places a payload in the database, which stores nothing until the caller's unit of work commits.
public static PlacedEmailContent InDatabase(ReadOnlyMemory<byte> rawMime)
Parameters
rawMimeReadOnlyMemory<byte>The raw RFC 822 bytes.
Returns
- PlacedEmailContent
The placement, carrying the bytes for the row to hold.
Remarks
It reaches no store, which is what keeps the database backend exactly as fast and exactly as atomic as it was before a second backend existed: everything it does still happens inside the caller's transaction.
Exceptions
- ArgumentException
Thrown when
rawMimeis empty.