public async Task ExecuteAsync(ICommand command, IExecutionContext executionContext)
 {
     await using (_executionDurationRandomizerScopeManager.Create(_duration))
     {
         await _innerDomainRepositoryExecutor.ExecuteAsync(command, executionContext);
     }
 }
        public async Task <UserCredentialsAuthenticationResult> ExecuteAsync(AuthenticateUserCredentialsQuery query, IExecutionContext executionContext)
        {
            var options = _userAreaDefinitionRepository.GetOptionsByCode(query.UserAreaCode).Authentication;

            await using (_executionDurationRandomizerScopeManager.Create(options.ExecutionDuration))
            {
                return(await ExecuteInternalAsync(query, executionContext));
            }
        }
        public async Task ExecuteAsync(InitiateUserAccountRecoveryViaEmailCommand command, IExecutionContext executionContext)
        {
            var options = _userAreaDefinitionRepository.GetOptionsByCode(command.UserAreaCode).AccountRecovery;

            await using (_executionDurationRandomizerScopeManager.Create(options.ExecutionDuration))
            {
                await ExecuteInternalAsync(command, executionContext);
            }
        }