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
accountMailAccountIdThe account asked about.
cancellationTokenCancellationTokenCancels the read.
Returns
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
accountnames nothing.