Table of Contents

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

session IPersistenceSession

The session the write joins.

request MailboxMutationRequest

The change that was asked for.

cancellationToken CancellationToken

Cancels 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 session or request is null.