Method DeleteRoleAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
DeleteRoleAsync(Guid, CancellationToken)
Removes a role nobody is assigned.
Task<GrantWriteResult> DeleteRoleAsync(Guid roleId, CancellationToken cancellationToken)
Parameters
roleIdGuidThe role.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<GrantWriteResult>
Written, UnknownRole, or StillAssigned carrying how many assignments stand in the way.