Beispiel #1
0
 /// <summary>
 /// Stop Strategy and disposes the object
 /// </summary>
 public void StopStrategy()
 {
     if (_tradeHubStrategy != null)
     {
         _tradeHubStrategy.Dispose();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Stop Strategy and disposes the object
 /// </summary>
 public void StopStrategy()
 {
     if (_dataHandler != null)
     {
         _dataHandler.Shutdown();
     }
     if (_tradeHubStrategy != null)
     {
         _tradeHubStrategy.Dispose();
     }
 }
 /// <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");
     }
 }