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); }
public EventStoreConnection( IEventStoreConnectionState connectionState, IEventJournal journal, INotificationHub notificationHub, IPendingNotifications pendingNotifications, IEventStreamConsumers consumers, IEventStreamConsumingSessionFactory sessionFactory, IEventMutationPipelineFactory pipelineFactory) { Require.NotNull(connectionState, "connectionState"); Require.NotNull(journal, "journal"); Require.NotNull(notificationHub, "notificationHub"); Require.NotNull(pendingNotifications, "pendingNotifications"); Require.NotNull(consumers, "consumers"); Require.NotNull(sessionFactory, "sessionFactory"); Require.NotNull(pipelineFactory, "pipelineFactory"); m_connectionState = connectionState; m_journal = journal; m_notificationHub = notificationHub; m_pendingNotifications = pendingNotifications; m_consumers = consumers; m_sessionFactory = sessionFactory; m_pipelineFactory = pipelineFactory; m_connectionState.ChangeToCreated(this); }