Method RevokeAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
RevokeAsync(Guid, CancellationToken)
Revokes one assignment.
public Task<GrantWriteResult> RevokeAsync(Guid assignmentId, CancellationToken cancellationToken)
Parameters
assignmentIdGuidThe assignment.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<GrantWriteResult>
What the act did, refused as LastRoot when it is the last assignment giving the root; UnknownAssignment also for one whose principal or scope lies outside the caller's.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller holds AdminRolesWrite at no scope.