Table of Contents

Method CountAttemptAsync

Namespace
MailFathom.Application.Mail.Mutations
Assembly
MailFathom.Application.dll

CountAttemptAsync(IPersistenceSession, MailboxMutationRecordId, CancellationToken)

Counts one attempt against the record before that attempt is made.

Task<int> CountAttemptAsync(IPersistenceSession session, MailboxMutationRecordId recordId, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The session the write joins.

recordId MailboxMutationRecordId

The record to count against.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<int>

The number this attempt is, counting from one.

Exceptions

ArgumentNullException

Thrown when session is null.

InvalidOperationException

Thrown when no record carries recordId.