Method OpenAsync
- Namespace
- MailFathom.Application.Mail.Mutations
- Assembly
- MailFathom.Application.dll
OpenAsync(IPersistenceSession, MailboxMutationRequest, CancellationToken)
Writes the intent down, or reads back the record that already holds this idempotency identity.
Task<MailboxMutationRecord> OpenAsync(IPersistenceSession session, MailboxMutationRequest request, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe session the write joins.
requestMailboxMutationRequestThe change that was asked for.
cancellationTokenCancellationTokenCancels the write or the read that follows a losing insert.
Returns
- Task<MailboxMutationRecord>
The record for this request, whether this call created it or another one did.
Remarks
The record starts at Recorded with no attempt counted, so opening one performs nothing by itself.
Exceptions
- ArgumentNullException
Thrown when
sessionorrequestis null.