public EventStoreConnection(
            IEventStoreConnectionState connectionState,
            IEventJournal journal,
            INotificationHub notificationHub,
            IPendingNotifications pendingNotifications,
            IEventStreamConsumers consumers,
            IEventStreamConsumingSessionFactory sessionFactory,
            IEventMutationPipelineFactory pipelineFactory,
            IConsumersService consumersService)
        {
            Require.NotNull(connectionState, nameof(connectionState));
            Require.NotNull(journal, nameof(journal));
            Require.NotNull(notificationHub, nameof(notificationHub));
            Require.NotNull(pendingNotifications, nameof(pendingNotifications));
            Require.NotNull(consumers, nameof(consumers));
            Require.NotNull(sessionFactory, nameof(sessionFactory));
            Require.NotNull(pipelineFactory, nameof(pipelineFactory));
            Require.NotNull(consumersService, nameof(consumersService));

            m_connectionState      = connectionState;
            m_journal              = journal;
            m_notificationHub      = notificationHub;
            m_pendingNotifications = pendingNotifications;
            m_consumers            = consumers;
            m_sessionFactory       = sessionFactory;
            m_pipelineFactory      = pipelineFactory;
            ConsumersService       = consumersService;

            m_connectionState.ChangeToCreated(this);
        }
Beispiel #2
0
 public ConsumersController(IConsumersService consumersService, IUserService userService)
 {
     _consumersService = consumersService;
     _userService      = userService;
 }