コード例 #1
0
 /// <summary>
 /// Stop Strategy and disposes the object
 /// </summary>
 public void StopStrategy()
 {
     if (_tradeHubStrategy != null)
     {
         _tradeHubStrategy.Dispose();
     }
 }
コード例 #2
0
 /// <summary>
 /// Stop Strategy and disposes the object
 /// </summary>
 public void StopStrategy()
 {
     if (_dataHandler != null)
     {
         _dataHandler.Shutdown();
     }
     if (_tradeHubStrategy != null)
     {
         _tradeHubStrategy.Dispose();
     }
 }
コード例 #3
0
 /// <summary>
 /// Disposes strategy objects
 /// </summary>
 public void Close()
 {
     try
     {
         if (_tradeHubStrategy != null)
         {
             _dataHandler.Shutdown();
             _tradeHubStrategy.Dispose();
             _tradeHubStrategy = null;
         }
     }
     catch (Exception exception)
     {
         _asyncClassLogger.Error(exception, _type.FullName, "Close");
     }
 }