protected override void Cleanup() { if (_eventStore != null) { _eventStore.Advanced.Drop(); _eventStore.Dispose(); } }
protected override async Task Cleanup() { if (_eventStore != null) { await _eventStore.Advanced.Drop(); _eventStore.Dispose(); } }
public void Dispose() { if (_isDisposed.EnsureCalledOnce()) { return; } _durableCommitDispatcher.Dispose(); _storeEvents.Dispose(); }
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; } }
void StopPolling() { if (_clients != null) { foreach (var client in _clients) { client.StopPolling(false); } _clients = null; } _bucketToClient.Clear(); if (_eventstore != null) { _eventstore.Dispose(); } }
public void Stop() { _eventStore.Dispose(); _simpleMessageQueue.Dispose(); }
public void Dispose() { _store.Dispose(); }
protected override void Cleanup() { _storeEvents.Dispose(); }
protected override void CleanupSynch() { _eventStore.Dispose(); }
public void Stop() { _store.Dispose(); _store = null; }
public void TestFixtureTearDown() { _store.Dispose(); }
public virtual void TestFixtureTearDown() { _eventStore.Dispose(); }
public void ShutDown() { _stream.Dispose(); _store.Dispose(); }
protected override Task Cleanup() { _eventStore.Dispose(); return(Task.CompletedTask); }
public virtual void TestFixtureTearDown() { Engine.Stop(); _eventStore.Dispose(); CollectionNames.Customize = name => name; }
protected override Task Cleanup() { _storeEvents.Dispose(); Sut.Dispose(); return(Task.CompletedTask); }