public GesEventStore(CreateEventStoreConnection createConnection) { Ensure.That(createConnection, "createConnection").IsNotNull(); _connection = createConnection(); _getConnection = () => { if(_isDisposed.Value) { throw new ObjectDisposedException("GesEventStore"); } return _connection; }; }
public GesEventStore(CreateEventStoreConnection createConnection) { Ensure.That(createConnection, "createConnection").IsNotNull(); _connection = createConnection(); _getConnection = () => { if(_isDisposed.Value) { throw new ObjectDisposedException("GesEventStore"); } return _connection; }; }