コード例 #1
0
 /// <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.");
     }
 }
コード例 #2
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     _dataCacheProvider.DisposeSafely();
 }
コード例 #3
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     _dataManager.RemoveAllSubscriptions();
     _cacheProvider.DisposeSafely();
     _resultHandler.Exit();
 }
コード例 #4
0
ファイル: FakeDataQueue.cs プロジェクト: QuantConnect/Lean
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     _timer.Stop();
     _timer.DisposeSafely();
     _dataCacheProvider.DisposeSafely();
 }
コード例 #5
0
 public void OneTimeTearDown()
 {
     _cacheProvider.DisposeSafely();
 }