private void Terminate() { if (_isTerminated == true) { return; } // Stop the application CoreApplication.Instance.Stop(); // Disconnect from Dragon properly _natSpeakService.Disconnect(); _natSpeakService.ReleaseSiteObject(_sitePtr); // Prevent re-entry _isTerminated = true; _logger.Info("Exiting."); }
public void UnRegister() { CoreApplication.Instance.Stop(); _natSpeakService.Disconnect(); }