Table of Contents

Method DeleteRoleAsync

Namespace
MailFathom.Application.Access.Grants
Assembly
MailFathom.Application.dll

DeleteRoleAsync(Guid, CancellationToken)

Removes a role nobody is assigned.

public Task<GrantWriteResult> DeleteRoleAsync(Guid roleId, CancellationToken cancellationToken)

Parameters

roleId Guid

The role.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<GrantWriteResult>

What the act did, carrying how many assignments refused it.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold AdminRolesWrite over the deployment.