/// <summary> /// Static method used to stop stack transport services. /// </summary> /// <remarks> /// This method stops the underlying stack transport services and the devices event queue manager. /// </remarks> public static void Stop() { m_eventQManager.Stop(); m_udpServiceHost.Stop(); m_httpServiceHost.Stop(); // Send bye DpwsDiscoGreeting.SendGreetingMessage(false); isStarted = false; }
/// <summary> /// Stop tranport services and releases the managed resources used by this class. /// </summary> /// <param name="disposing">True to release managed resources</param> internal void Dispose(bool disposing) { if (disposing) { // Stop the transport services m_httpServiceHost.Stop(); m_udpSeviceHost.Stop(); m_threadLock = null; m_discoClient = null; m_endpointAddress = null; m_eventClient = null; m_mexClient = null; m_eventCallbacks = null; m_transportAddress = null; m_bodyParts = null; m_discoServiceEndpoints = null; m_callbackServiceEndpoints = null; m_udpSeviceHost = null; m_httpServiceHost = null; } }