예제 #1
0
 public EventsLogic(IIdentityFactory identityFactory, IUserQueueRepository userQueueRepository,
                    IRabbitMqClient rabbitMqClient, IOptions <EventOptions> eventOptions, IEventsPublisher eventsPublisher)
 {
     _identityFactory     = identityFactory;
     _userQueueRepository = userQueueRepository;
     _rabbitMqClient      = rabbitMqClient;
     _eventOptions        = eventOptions?.Value;
     _eventsPublisher     = eventsPublisher;
 }
 public NotifyExpenseAddedCommandHandler(
     IIdentityContext identityContext,
     ILogger <NotifyExpenseAddedCommandHandler> logger,
     INotificationService notificationService,
     IEventsPublisher eventsPublisher)
 {
     _identityContext     = identityContext;
     _logger              = logger;
     _notificationService = notificationService;
     _eventsPublisher     = eventsPublisher;
 }
예제 #3
0
 public UnitOfWork(
     OperationalDbContext dbContext,
     ILogger <UnitOfWork> logger,
     IIntegrationEventLogService eventLogService,
     IEventsPublisher eventsPublisher)
 {
     _dbContext       = dbContext;
     _logger          = logger;
     _eventLogService = eventLogService;
     _eventsPublisher = eventsPublisher;
 }
예제 #4
0
 public DefaultCommandHandler(AggregateRoot root, IEventsPublisher publisher, ILogger <DefaultCommandHandler> logger)
 {
     this.root      = root;
     this.publisher = publisher;
     this.logger    = logger;
 }
 public RoomController(IEventsPublisher publisher, IRoomRepository roomRepository)
 {
     _roomRepository = roomRepository ?? throw new ArgumentNullException(nameof(roomRepository));
     _publisher      = publisher ?? throw new ArgumentNullException(nameof(publisher));
 }
예제 #6
0
 public MarkAsReadHandler(IEventsPublisher <NotificationEvent> eventsPublisher, INotificationsRepository repository)
 {
     _eventsPublisher = eventsPublisher;
     _repository      = repository;
 }
 public RoomController(IEventsPublisher publisher)
 {
     _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher));
 }
예제 #8
0
 public Task ReportDamage(IEventsPublisher publisher, string content)
 {
     return(publisher.Publish(new RoomDamageReported(_roomId, content)));
 }
예제 #9
0
 public Task RequestClean(IEventsPublisher publisher)
 {
     return(publisher.Publish(new RoomCleaningRequested(_roomId)));
 }
예제 #10
0
 public Task CheckingDone(IEventsPublisher publisher)
 {
     return(publisher.Publish(new RoomCheckedAsOk(_roomId)));
 }
예제 #11
0
 public Task Checkout(IEventsPublisher publisher, RoomId roomId)
 {
     return(publisher.Publish(new GuestCheckedOut(roomId)));
 }