Пример #1
0
 public async Task Execute(ICommand command)
 {
     using (_scope.BeginScope())
     {
         await _mediator.Send(command);
     }
 }
Пример #2
0
 public Task <TResult> ExecuteQueryAsync <TResult>(IQuery <TResult> query)
 {
     using (_scope.BeginScope())
     {
         return(_mediator.Send(query));
     }
 }