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; }
public UnitOfWork( OperationalDbContext dbContext, ILogger <UnitOfWork> logger, IIntegrationEventLogService eventLogService, IEventsPublisher eventsPublisher) { _dbContext = dbContext; _logger = logger; _eventLogService = eventLogService; _eventsPublisher = eventsPublisher; }
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)); }
public MarkAsReadHandler(IEventsPublisher <NotificationEvent> eventsPublisher, INotificationsRepository repository) { _eventsPublisher = eventsPublisher; _repository = repository; }
public RoomController(IEventsPublisher publisher) { _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher)); }
public Task ReportDamage(IEventsPublisher publisher, string content) { return(publisher.Publish(new RoomDamageReported(_roomId, content))); }
public Task RequestClean(IEventsPublisher publisher) { return(publisher.Publish(new RoomCleaningRequested(_roomId))); }
public Task CheckingDone(IEventsPublisher publisher) { return(publisher.Publish(new RoomCheckedAsOk(_roomId))); }
public Task Checkout(IEventsPublisher publisher, RoomId roomId) { return(publisher.Publish(new GuestCheckedOut(roomId))); }