IAzureCosmosDbFourEyesRequestDevice Method

Request four-eyes control for a DeviceDto

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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