Table of Contents

Method ReadForUserAsync

Namespace
MailFathom.Application.Access.Credentials
Assembly
MailFathom.Application.dll

ReadForUserAsync(UserId, CancellationToken)

Reads the credentials one user holds, of every method.

Task<IReadOnlyList<UserCredential>> ReadForUserAsync(UserId user, CancellationToken cancellationToken)

Parameters

user UserId

The user whose credentials are being listed.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<UserCredential>>

The credentials, oldest first, at most MaximumListedPerUser of them, empty when the user holds none or does not exist.

Remarks

Bounded by that ceiling rather than by what an administrator happened to provision, and never read across users. There is no cursor past it, for the reason the ceiling states.

Exceptions

ArgumentException

Thrown when user names nobody.