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
파일: App.cs 프로젝트: thefringeninja/Cedar
 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);
 }