public UserController(ICommandBusAsync commandBus,
                       IQueryBusAsync queryBus, IHttpContextAccessor accessor)
 {
     _commandBus = commandBus;
     _queryBus   = queryBus;
     _accessor   = accessor;
 }
示例#2
0
 public CoursesController(IQueryBusAsync queryBus, ICommandBusAsync commandBus)
 {
     _queryBus   = queryBus;
     _commandBus = commandBus;
 }
示例#3
0
 public AuthorsController(IQueryBusAsync queryBus, ICommandBusAsync commandBus)
 {
     _queryBus   = queryBus;
     _commandBus = commandBus;
 }
示例#4
0
 public UsersController(ICommandBusAsync commandBus, IQueryBusAsync queryBus)
 {
     _commandBus = commandBus;
     _queryBus   = queryBus;
 }
 public PhonesController(ICommandBusAsync commandBus, IQueryBusAsync queryBus)
 {
     this.commandBus = commandBus;
     this.queryBus   = queryBus;
 }
示例#6
0
 public CqrsMediatorAsync(IQueryBusAsync queryBusAsync, ICommandBusAsync commandBusAsync)
 {
     _queryBusAsync   = queryBusAsync;
     _commandBusAsync = commandBusAsync;
 }