Beispiel #1
0
 public override void ReqUserLogout()
 {
     this.IsLogin = false;
     //上面的disconnect注销掉,需要主动调用此回调函数
     _OnRspUserLogout?.Invoke(this, new IntEventArgs {
         Value = 0
     });
     //取消连接响应,避免重连后的再登录.(release中已处理)
     //_t.SetOnFrontDisconnected(null);
     //_t.SetOnFrontConnected(null);
     _t.Release();
 }
Beispiel #2
0
 private void closeTQ()
 {
     ctpQuote.Release();
     ctpTrade.Release();
 }