Ejemplo n.º 1
0
 /// <summary>
 /// Call this method to terminate the connections with TWS. Calling this method does not cancel orders that have already been sent.
 /// </summary>
 public void Disconnect()
 {
     lock (this)
     {
         GeneralTracer.WriteLineIf(ibTrace.TraceInfo, "IBClient Disconnect");
         ClientSocket.eDisconnect();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The bulk of the clean-up code is implemented in Dispose(bool)
 /// </summary>
 /// <param name="disposing">Allows the ondispose method to override the dispose action.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         GeneralTracer.WriteLineIf(ibTrace.TraceInfo, "IBClient Dispose");
         ClientSocket.eDisconnect();
         ClientSocket.Close();
     }
 }