Пример #1
0
        public GesEventStore(CreateEventStoreConnection createConnection)
        {
            Ensure.That(createConnection, "createConnection").IsNotNull();

            _connection = createConnection();
            _getConnection = () =>
            {
                if(_isDisposed.Value)
                {
                    throw new ObjectDisposedException("GesEventStore");
                }
                return _connection;
            };
        }
Пример #2
0
         public GesEventStore(CreateEventStoreConnection createConnection)
         {
             Ensure.That(createConnection, "createConnection").IsNotNull();

             _connection = createConnection();
             _getConnection = () =>
             {
                 if(_isDisposed.Value) 
                 {
                     throw new ObjectDisposedException("GesEventStore");
                 }
                 return _connection;
             };
         }