Method ExportAsync
- Namespace
- MailFathom.Application.Contacts
- Assembly
- MailFathom.Application.dll
ExportAsync(ContactId, CancellationToken)
Produces everything the book holds about one person.
public Task<ContactExport?> ExportAsync(ContactId contactId, CancellationToken cancellationToken)
Parameters
contactIdContactIdThe contact to export.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<ContactExport>
The export, or null when the book holds no such contact.
Remarks
It is what a data-subject access request is answered from, which is reading what this deployment derived about a person rather than a report of its own state.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the export was reached by anything but a caller granted AdminAuditRead.