public TicketPriorityEventHandler(ITicketQueryRepository ticketRepository, IPriorityQueryRepository priorityRepository, ITicketEventQueryRepository eventRepository, IMapper mapper, IWebsocketEmittor websocketEmittor)
 {
     _ticketRepository   = ticketRepository ?? throw new ArgumentNullException(nameof(ticketRepository));
     _priorityRepository = priorityRepository ?? throw new ArgumentNullException(nameof(priorityRepository));
     _eventRepository    = eventRepository ?? throw new ArgumentNullException(nameof(eventRepository));
     _mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _websocketEmittor   = websocketEmittor ?? throw new ArgumentNullException(nameof(websocketEmittor));
 }
예제 #2
0
 public TicketStatusEventHandler(IMapper mapper, IWebsocketEmittor websocketEmittor, ITicketQueryRepository ticketRepository, IStatusQueryRepository statusRepository, ITicketEventQueryRepository eventRepository)
 {
     _mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _websocketEmittor = websocketEmittor ?? throw new ArgumentNullException(nameof(websocketEmittor));
     _ticketRepository = ticketRepository ?? throw new ArgumentNullException(nameof(ticketRepository));
     _statusRepository = statusRepository ?? throw new ArgumentNullException(nameof(statusRepository));
     _eventRepository  = eventRepository ?? throw new ArgumentNullException(nameof(eventRepository));
 }
예제 #3
0
 public TicketCreateEventHandler(ITicketQueryRepository ticketRepository, ITicketEventQueryRepository eventRepository, IMapper mapper, IWebsocketEmittor websocketEmittor,
                                 IIntegrationEventPublisher eventPublisher, IPriorityQueryRepository priorityRepository, IStatusQueryRepository statusRepository)
 {
     _ticketRepository   = ticketRepository ?? throw new ArgumentNullException(nameof(ticketRepository));
     _priorityRepository = priorityRepository ?? throw new ArgumentNullException(nameof(priorityRepository));
     _statusRepository   = statusRepository ?? throw new ArgumentNullException(nameof(statusRepository));
     _eventRepository    = eventRepository ?? throw new ArgumentNullException(nameof(eventRepository));
     _websocketEmittor   = websocketEmittor ?? throw new ArgumentNullException(nameof(websocketEmittor));
     _mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _eventPublisher     = eventPublisher ?? throw new ArgumentNullException(nameof(eventPublisher));
 }
 public TicketCommentEventHandler(IWebsocketEmittor websocketEmittor, IMapper mapper, ITicketEventQueryRepository repository)
 {
     _websocketEmittor = websocketEmittor ?? throw new ArgumentNullException(nameof(websocketEmittor));
     _mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _repository       = repository ?? throw new ArgumentNullException(nameof(repository));
 }
예제 #5
0
 public TicketController(IMediator mediator, IWebsocketEmittor websocketEmittor)
 {
     _mediator         = mediator;
     _websocketEmittor = websocketEmittor;
 }