Table of Contents

Method ReadStoredContentBytesAsync

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

ReadStoredContentBytesAsync(MailAccountId, CancellationToken)

Reads what one account's stored mail content occupies, from the maintained counter.

Task<long> ReadStoredContentBytesAsync(MailAccountId account, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account asked about.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<long>

The bytes that account's stored payloads hold.

Remarks

An account whose counter has never been written is derived once and adopted rather than answered as zero, so an upgraded deployment and one that has just erased and re-synchronized both start from what storage actually holds. Every later read is the single row.

Exceptions

ArgumentException

Thrown when account names nothing.