Method BeginRead
- Namespace
- MailFathom.Application.Observability
- Assembly
- MailFathom.Application.dll
BeginRead(MailboxReadOperation, CancellationToken)
Opens the report of one read, and publishes it when the returned scope is disposed.
IMailboxReadScope BeginRead(MailboxReadOperation operation, CancellationToken cancellationToken)
Parameters
operationMailboxReadOperationWhich read is beginning.
cancellationTokenCancellationTokenThe caller's token, read as the scope is disposed to tell a caller that walked away from a read that broke.
Returns
- IMailboxReadScope
The scope, which the caller must dispose exactly once and which the read must be conducted inside.