IAzureCosmosDbGetRoleById(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.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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)

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