Пример #1
0
        public EventReader(IEventStoreConnection connection, IConsole console, IKnownEventsProvider knownEventsProvider)
        {
            if (connection == null) throw new ArgumentNullException("connection");
            if (console == null) throw new ArgumentNullException("console");
            if (knownEventsProvider == null) throw new ArgumentNullException("knownEventsProvider");

            _connection = connection;
            _console = console;
            _knownEventsProvider = knownEventsProvider;
        }
Пример #2
0
        public EventReader(IEventStoreConnection connection, IConsole console, IKnownEventsProvider knownEventsProvider)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }
            if (console == null)
            {
                throw new ArgumentNullException("console");
            }
            if (knownEventsProvider == null)
            {
                throw new ArgumentNullException("knownEventsProvider");
            }

            _connection          = connection;
            _console             = console;
            _knownEventsProvider = knownEventsProvider;
        }