Exemplo n.º 1
0
 public GroupController(
     IMediator mediator,
     IGroupQueries queries)
     : base(mediator)
 {
     _queries = queries;
 }
Exemplo n.º 2
0
 public GroupsController(IMediator mediator,
                         IGroupQueries groupQueries,
                         ILogger <GroupsController> logger)
 {
     _groupQueries = groupQueries ?? throw new ArgumentNullException(nameof(groupQueries));
     _mediator     = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 3
0
 public CreateGroupCommandHandler(IGroupRepository groupRepository,
                                  IGroupQueries groupQueries,
                                  IHttpContextAccessor httpContextAccessor,
                                  IChatServerRedis chatServerRedisService,
                                  ILogger <CreateGroupCommandHandler> logger)
 {
     _groupRepository        = groupRepository ?? throw new ArgumentNullException(nameof(groupRepository));
     _groupQueries           = groupQueries ?? throw new ArgumentNullException(nameof(groupQueries));
     _httpContextAccessor    = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     _chatServerRedisService = chatServerRedisService ?? throw new ArgumentNullException(nameof(chatServerRedisService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public Handler(IGroupQueries groupQueries)
 {
     _groupQueries = groupQueries;
 }
Exemplo n.º 5
0
 public GroupController(IGroupService groupservice, IGroupQueries groupqueries, ILogger <GroupController> logger)
 {
     _groupsService = groupservice;
     _groupQueries  = groupqueries;
     _logger        = logger;
 }
Exemplo n.º 6
0
 public GroupController(IMediator mediator, IGroupQueries groupQueries)
 {
     _mediator     = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _groupQueries = groupQueries ?? throw new ArgumentNullException(nameof(groupQueries));
 }