protected override void Cleanup()
 {
     if (_eventStore != null)
     {
         _eventStore.Advanced.Drop();
         _eventStore.Dispose();
     }
 }
Пример #2
0
        protected override async Task Cleanup()
        {
            if (_eventStore != null)
            {
                await _eventStore.Advanced.Drop();

                _eventStore.Dispose();
            }
        }
Пример #3
0
 public void Dispose()
 {
     if (_isDisposed.EnsureCalledOnce())
     {
         return;
     }
     _durableCommitDispatcher.Dispose();
     _storeEvents.Dispose();
 }
Пример #4
0
 void StopPolling()
 {
     foreach (var subscription in _subscriptions)
     {
         subscription.Dispose();
     }
     _observeCommits.Dispose();
     _eventstore.Dispose();
 }
 void StopPolling()
 {
     foreach (var client in _clients)
     {
         client.StopPolling();
     }
     _clients.Clear();
     _bucketToClient.Clear();
     _eventstore.Dispose();
 }
        private void Dispose(bool disposing)
        {
            if (!_disposedValue)
            {
                if (disposing)
                {
                    _store.Dispose();
                }

                _store         = null;
                _disposedValue = true;
            }
        }
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    _store.Dispose();
                    _store = null;
                }

                disposedValue = true;
            }
        }
Пример #8
0
 void StopPolling()
 {
     if (_clients != null)
     {
         foreach (var client in _clients)
         {
             client.StopPolling(false);
         }
         _clients = null;
     }
     _bucketToClient.Clear();
     if (_eventstore != null)
     {
         _eventstore.Dispose();
     }
 }
Пример #9
0
 public void Stop()
 {
     _eventStore.Dispose();
     _simpleMessageQueue.Dispose();
 }
 public void Dispose()
 {
     _store.Dispose();
 }
Пример #11
0
 protected override void Cleanup()
 {
     _storeEvents.Dispose();
 }
Пример #12
0
 protected override void CleanupSynch()
 {
     _eventStore.Dispose();
 }
Пример #13
0
 public void Stop()
 {
     _store.Dispose();
     _store = null;
 }
Пример #14
0
 public void TestFixtureTearDown()
 {
     _store.Dispose();
 }
Пример #15
0
 public virtual void TestFixtureTearDown()
 {
     _eventStore.Dispose();
 }
 public void ShutDown()
 {
     _stream.Dispose();
     _store.Dispose();
 }
Пример #17
0
 protected override Task Cleanup()
 {
     _eventStore.Dispose();
     return(Task.CompletedTask);
 }
Пример #18
0
 public virtual void TestFixtureTearDown()
 {
     Engine.Stop();
     _eventStore.Dispose();
     CollectionNames.Customize = name => name;
 }
 protected override Task Cleanup()
 {
     _storeEvents.Dispose();
     Sut.Dispose();
     return(Task.CompletedTask);
 }