Task CancelFourEyesRequestEnvironment(
EnvironmentDto environment,
CompanyDto company,
UserSessionData requestBy,
ResourceAction action,
CancellationToken cancellationToken = default
)| UnauthorizedAccessException | Thrown 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 |
| ArgumentNullException | Thrown if environment, company or requestBy was |
| ArgumentException | Thrown if action is IsEmpty(T). |