コード例 #1
0
        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.");
        }
コード例 #2
0
 public void UnRegister()
 {
     CoreApplication.Instance.Stop();
     _natSpeakService.Disconnect();
 }