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
sessionIPersistenceSessionThe session the write joins.
recordIdMailboxMutationRecordIdThe record to count against.
cancellationTokenCancellationTokenCancels the write.
Returns
Exceptions
- ArgumentNullException
Thrown when
sessionis null.- InvalidOperationException
Thrown when no record carries
recordId.