IAzureCosmosDbFourEyesRequestEnvironment Method

Request four-eyes control for an EnvironmentDto.

Definition

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

Parameters

environment  EnvironmentDto
Environment to lock
requestBy  UserSessionData
User requesting four-eyes control the EnvironmentDto
action  ResourceAction
action that being requested
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

Task
Task completion

Exceptions

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

See Also