Table of Contents

Method CreateRoleAsync

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

CreateRoleAsync(Guid, string, RolePermissions, DateTimeOffset, CancellationToken)

Records a role.

Task<GrantWriteResult> CreateRoleAsync(Guid roleId, string name, RolePermissions permissions, DateTimeOffset createdAt, CancellationToken cancellationToken)

Parameters

roleId Guid

The identifier the role is to carry.

name string

The name an operator reads it by, already judged.

permissions RolePermissions

What it grants.

createdAt DateTimeOffset

When it was recorded.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<GrantWriteResult>

Written or NameTaken.