示例#1
0
 private void Disconnect_MD()
 {
     lock (_lock)
     {
         if (null != Api && IntPtr.Zero != Api)
         {
             MdApi.MD_RegMsgQueue2MdApi(Api, IntPtr.Zero);
             MdApi.MD_ReleaseMdApi(Api);
             Api = IntPtr.Zero;
         }
         IsConnected = false;
     }
 }
示例#2
0
 private void Disconnect_MD()
 {
     lock (_lockMd)
     {
         if (null != m_pMdApi && IntPtr.Zero != m_pMdApi)
         {
             MdApi.MD_RegMsgQueue2MdApi(m_pMdApi, IntPtr.Zero);
             MdApi.MD_ReleaseMdApi(m_pMdApi);
             m_pMdApi = IntPtr.Zero;
         }
         _bMdConnected = false;
     }
 }
示例#3
0
        public override void Disconnect()
        {
            lock (locker)
            {
                if (null != IntPtrKey && IntPtr.Zero != IntPtrKey)
                {
                    MdApi.MD_RegMsgQueue2MdApi(IntPtrKey, IntPtr.Zero);
                    MdApi.MD_ReleaseMdApi(IntPtrKey);
                    IntPtrKey = IntPtr.Zero;
                }

                base.Disconnect();
            }
        }