Method WidensOnUpgradeAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
WidensOnUpgradeAsync(UserId, CancellationToken)
Reports whether what one user holds widens on upgrade, because a role they were given lists a pattern.
public Task<bool> WidensOnUpgradeAsync(UserId user, CancellationToken cancellationToken)
Parameters
userUserIdThe user.
cancellationTokenCancellationTokenCancels the read.
Returns
Remarks
Read from the records each time rather than remembered: only a write bounded by it asks, and a write decides on what is stored now.
Exceptions
- ArgumentException
Thrown when
usernames nobody.