AzureCosmosDbCancelFourEyesRequestEnvironment Method

Cancel four-eyes control request of an EnvironmentDto.

Definition

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

Implements

IAzureCosmosDbCancelFourEyesRequestEnvironment(EnvironmentDto, CompanyDto, UserSessionData, ResourceAction, CancellationToken)

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