Table of Contents

Method InObjectStorage

Namespace
MailFathom.Application.EmailContent.Storage
Assembly
MailFathom.Application.dll

InObjectStorage(string, long, ReadOnlyMemory<byte>)

Records that a payload was written to the object backend under one key.

public static PlacedEmailContent InObjectStorage(string objectLocator, long byteLength, ReadOnlyMemory<byte> sha256Hash)

Parameters

objectLocator string

The whole key the object was written under.

byteLength long

How many bytes were written.

sha256Hash ReadOnlyMemory<byte>

The digest computed over them and sent with the request.

Returns

PlacedEmailContent

The placement, carrying no bytes because the object holds them.

Exceptions

ArgumentException

Thrown when objectLocator is blank or sha256Hash is not a SHA-256 digest.

ArgumentOutOfRangeException

Thrown when byteLength is not positive.