Method ReplaceRolePermissionsAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
ReplaceRolePermissionsAsync(Guid, RolePermissions, CancellationToken)
Replaces the whole list of permissions a role grants.
Task<GrantWriteResult> ReplaceRolePermissionsAsync(Guid roleId, RolePermissions permissions, CancellationToken cancellationToken)
Parameters
roleIdGuidThe role.
permissionsRolePermissionsWhat it is to grant from now on, which drops any stored entry that grants nothing in this build.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<GrantWriteResult>
Written, UnknownRole, or LastRoot where the list would leave the last role giving the root over the deployment with neither the name nor a pattern reaching it.