Table of Contents

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

kind EmailContentKind

Which of the five payload kinds is being written, which reaches the key as a segment.

rawMime ReadOnlyMemory<byte>

The raw RFC 822 bytes.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<PlacedEmailContent>

The placement, naming the whole key and what was measured over the payload.

Exceptions

ArgumentException

Thrown when rawMime is empty.

MailFathomException

Thrown when the endpoint did not accept the object.