Method FindAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Tracking
- Assembly
- MailFathom.Application.dll
FindAsync(OutgoingEmailId, CancellationToken)
Reads back one send of this user's, with what each of its recipients was told.
public Task<OutgoingEmailRecord?> FindAsync(OutgoingEmailId outgoingEmailId, CancellationToken cancellationToken)
Parameters
outgoingEmailIdOutgoingEmailIdThe record to read.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<OutgoingEmailRecord>
The record, or null when this user has no send under that identifier.
Remarks
A send from an account this user is not assigned answers exactly as one nobody holds. A send one of their own accounts made that a rule asked for does not: neither the origin nor the author is part of the scoping here, because the mail leaves a mailbox this user is assigned whoever asked for it, and everybody assigned that mailbox is entitled to see what is going out of it.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold MailSend, or is acting for no user.