public async Task ExecuteAsync(ICommand command, IExecutionContext executionContext) { await using (_executionDurationRandomizerScopeManager.Create(_duration)) { await _innerDomainRepositoryExecutor.ExecuteAsync(command, executionContext); } }
public async Task ExecuteAsync(ICommand command, IExecutionContext executionContext) { var userContext = await _userContextService.GetCurrentContextByUserAreaAsync(_userArea.UserAreaCode); var newExecutionContext = _executionContextFactory.Create(userContext, executionContext); await _innerDomainRepositoryExecutor.ExecuteAsync(command, newExecutionContext); }
public async Task ExecuteAsync(ICommand command, IExecutionContext executionContext) { if (!_modelState.IsValid) { return; } try { await _innerDomainRepositoryExecutor.ExecuteAsync(command, executionContext); } catch (ValidationException validationException) { AddValidationExceptionToModelState(validationException); } }
public async Task ExecuteAsync(ICommand command, IExecutionContext executionContext) { var newExecutionContext = _executionContextFactory.Create(_userContext, executionContext); await _innerDomainRepositoryExecutor.ExecuteAsync(command, newExecutionContext); }
public async Task ExecuteAsync(ICommand command, IExecutionContext executionContext) { var newExecutionContext = await _executionContextFactory.CreateSystemUserExecutionContextAsync(executionContext); await _innerDomainRepositoryExecutor.ExecuteAsync(command, newExecutionContext); }
public virtual Task <TResult> ExecuteQueryAsync <TResult>(IQuery <TResult> query) { return(_domainRepositoryExecutor.ExecuteAsync(query, null)); }
public async Task ExecuteAsync(ICommand command, IExecutionContext executionContext) { await _innerDomainRepositoryExecutor.ExecuteAsync(command, _executionContextOverride); }