Table of Contents

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

permission MailFathomPermission

The capability being asked about.

accounts IReadOnlyCollection<MailAccountId>

The accounts the operation names.

cancellationToken CancellationToken

Cancels 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 accounts is null.