Close() 공개 메소드

Called when the media channels are no longer required, such as when the VoIP call using it has terminated, and all resources can be shutdown and closed.
public Close ( ) : void
리턴 void
예제 #1
0
        /// <summary>
        /// Application closing, shutdown the SIP, Google Voice and STUN clients.
        /// </summary>
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            _mediaManager.Close();
            _sipClient.Shutdown();

            if (_stunClient != null)
            {
                _stunClient.Stop();
            }
        }
예제 #2
0
        /// <summary>
        /// Application closing, shutdown the SIP, Google Voice and STUN clients.
        /// </summary>
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            foreach (var sipClient in _sipClients)
            {
                sipClient.Shutdown();
            }

            _mediaManager.Close();
            _sipTransportManager.Shutdown();

            if (_stunClient != null)
            {
                _stunClient.Stop();
            }
        }