Method CoveredMailAccountsAsync
- Namespace
- MailFathom.Application.Access
- Assembly
- MailFathom.Application.dll
CoveredMailAccountsAsync(MailFathomPermission, IReadOnlyCollection<MailAccountId>, CancellationToken)
Answers which of several mail accounts the caller holds one named capability over, placing them in one read.
public Task<IReadOnlyList<MailAccountId>> CoveredMailAccountsAsync(MailFathomPermission permission, IReadOnlyCollection<MailAccountId> accounts, CancellationToken cancellationToken)
Parameters
permissionMailFathomPermissionThe capability being asked about.
accountsIReadOnlyCollection<MailAccountId>The accounts the operation names.
cancellationTokenCancellationTokenCancels placing the accounts.
Returns
- Task<IReadOnlyList<MailAccountId>>
The accounts an admitted caller holds the capability over, in the order given; every one of them for a caller holding it over the deployment, and none for a caller holding it nowhere.
Exceptions
- ArgumentNullException
Thrown when
accountsis null.