IAzureCosmosDbCancelFourEyesRequestEnvironment Method

Cancel four-eyes control request of an EnvironmentDto.

Definition

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

Parameters

environment  EnvironmentDto
Environment to request four-eyes control
company  CompanyDto
CompanyDto owning the EnvironmentDto
requestBy  UserSessionData
User request four-eyes control for 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
InvalidOperationException Thrown if the environment we're trying to request four-eyes control is the MainEnvironment of the company
ArgumentNullExceptionThrown if environment, company or requestBy was
ArgumentExceptionThrown if action is IsEmpty(T).

See Also