/// <summary> /// Send an exit signal to the thread. /// </summary> public virtual void Exit() { if (IsActive) { IsActive = false; Log.Trace("FileSystemDataFeed.Exit(): Start. Setting cancellation token..."); _cancellationTokenSource.Cancel(); _subscriptionFactory?.DisposeSafely(); _cacheProvider.DisposeSafely(); Log.Trace("FileSystemDataFeed.Exit(): Exit Finished."); } }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { _dataCacheProvider.DisposeSafely(); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { _dataManager.RemoveAllSubscriptions(); _cacheProvider.DisposeSafely(); _resultHandler.Exit(); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { _timer.Stop(); _timer.DisposeSafely(); _dataCacheProvider.DisposeSafely(); }
public void OneTimeTearDown() { _cacheProvider.DisposeSafely(); }