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
userUserIdThe user whose credentials are being listed.
cancellationTokenCancellationTokenCancels 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
usernames nobody.