Method ReadAsync
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
ReadAsync(MailAccountId, CancellationToken)
Reads the account's folders and which acts each of them and the account itself allow.
public Task<MailFolderManagement?> ReadAsync(MailAccountId account, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account, by its generated identifier.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<MailFolderManagement>
The folders and their acts, or null where this caller is assigned no such account.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold
mailfathom.mail.read, or acts for no user at all.