IAzureCosmosDbFourEyesRequestDevice Method

Request four-eyes control for a DeviceDto

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task FourEyesRequestDevice(
	DeviceDto device,
	UserSessionData requestBy,
	ResourceAction action,
	CancellationToken cancellationToken = default
)

Parameters

device  DeviceDto
object to be control
requestBy  UserSessionData
User requesting four-eyes control
action  ResourceAction
Name of the action that needs four-eyes control
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

Task
Task completion

Exceptions

UnauthorizedAccessExceptionThrown if the user requestBy did not have the correct permissions
ArgumentNullExceptionThrown if device or requestBy was
ArgumentExceptionThrown if action is IsEmpty(T).

See Also