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+45c8d9adb5970d727cceec44a5ed61aea0016e50
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