/// <summary> /// 终止服务并释放资源 /// </summary> public override void Destroy() { Stop(); if (pClient != IntPtr.Zero) { HttpSdk.Destroy_HP_HttpClient(pClient); pClient = IntPtr.Zero; } if (pListener != IntPtr.Zero) { HttpSdk.Destroy_HP_HttpClientListener(pListener); pListener = IntPtr.Zero; } IsCreate = false; }