IAzureCosmosDbGetRoleById(Guid, CancellationToken) Method
Gets role by ID, for use in the Mt Role Store.
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<RoleDto?> GetRoleById(
Guid roleId,
CancellationToken cancellationToken = default
)
- roleId Guid
- Id of the role
- cancellationToken CancellationToken (Optional)
- Cancellation token
TaskRoleDtoFound role (if any)
ONLY USE THIS METHOD IN THE MtRoleStore! DO NOT use this method anywhere else! Otherwise,
users could potentially access roles belonging to other companies!