Method ReadAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Tracking
- Assembly
- MailFathom.Application.dll
ReadAsync(OutgoingEmailId, CancellationToken)
Reads back the send one identifier names, for the caller that asked for it.
public Task<OutgoingEmailRecord> ReadAsync(OutgoingEmailId outgoingEmailId, CancellationToken cancellationToken)
Parameters
outgoingEmailIdOutgoingEmailIdThe record to read.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<OutgoingEmailRecord>
The durable record, exactly as it stands.
Remarks
The grant is the sending one rather than the reading one. What this answers is what the caller itself asked to have sent, so a credential granted to read a mailbox learns nothing here — and a tool that answered under the read grant would be a way to see outgoing correspondence without ever being allowed to produce any.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the work was not reached by a caller granted MailSend.
- QueuedSendRefusedException
Thrown when no send this caller queued is held under that identifier.