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; } }
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; } }
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(); } }