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
roleIdGuidThe identifier the role is to carry.
namestringThe name an operator reads it by, already judged.
permissionsRolePermissionsWhat it grants.
createdAtDateTimeOffsetWhen it was recorded.
cancellationTokenCancellationTokenCancels the write.