/// <summary> /// Uninitialize the ApplicationEndpoint. /// </summary> public void Uninitialize() { if (m_eventChannel != null) { m_eventChannel.HandleIncomingEvents -= this.OnReceivedCallback; m_eventChannel.TryStopAsync().Wait(); } }