IAzureCosmosDbFourEyesRequestDevice Method

Request four-eyes control for a DeviceDto

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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