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
objectLocatorstringThe whole key the object was written under.
byteLengthlongHow many bytes were written.
sha256HashReadOnlyMemory<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
objectLocatoris blank orsha256Hashis not a SHA-256 digest.- ArgumentOutOfRangeException
Thrown when
byteLengthis not positive.