Task LockEnvironment(
EnvironmentDto environment,
CompanyDto company,
UserSessionData lockedBy,
bool isImplicitLock,
CancellationToken cancellationToken = default
)| UnauthorizedAccessException | Thrown if the user lockedBy did not have the correct permissions |
| InvalidOperationException | Thrown if the environment we're trying to lock is the MainEnvironment of the company |
| ArgumentNullException | Thrown if environment, company or lockedBy was |