AzureCosmosDbGetRoleById(Guid, CancellationToken) Method

Gets role by ID, for use in the Mt Role Store.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task<RoleDto?> GetRoleById(
	Guid roleId,
	CancellationToken cancellationToken = default
)

Parameters

roleId  Guid
Id of the role
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskRoleDto
Found role (if any)

Implements

IAzureCosmosDbGetRoleById(Guid, CancellationToken)

Remarks

ONLY USE THIS METHOD IN THE MtRoleStore! DO NOT use this method anywhere else! Otherwise, users could potentially access roles belonging to other companies!

See Also