Method PlaceAsync
- Namespace
- MailFathom.Application.EmailContent.Storage
- Assembly
- MailFathom.Application.dll
PlaceAsync(EmailContentKind, ReadOnlyMemory<byte>, CancellationToken)
Writes one payload under a key minted for this write, and answers with where it went.
Task<PlacedEmailContent> PlaceAsync(EmailContentKind kind, ReadOnlyMemory<byte> rawMime, CancellationToken cancellationToken)
Parameters
kindEmailContentKindWhich of the five payload kinds is being written, which reaches the key as a segment.
rawMimeReadOnlyMemory<byte>The raw RFC 822 bytes.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<PlacedEmailContent>
The placement, naming the whole key and what was measured over the payload.
Exceptions
- ArgumentException
Thrown when
rawMimeis empty.- MailFathomException
Thrown when the endpoint did not accept the object.