System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StopListening C# (CSharp) Метод

StopListening() приватный Метод

private StopListening ( Object data ) : void
data Object
Результат void
        public void StopListening(Object data)
        {
            InternalRemotingServices.RemotingTrace("HTTPChannel.StopListening");

            if (_port > 0)
            {
                _bListening = false;

                // Ask the TCP listener to stop listening on the port
                if(null != _tcpListener)
                {
                    _tcpListener.Stop();
                }
            }
        } // StopListening

Usage Example

        } // StartListening

        /// <include file='doc\CombinedTcpChannel.uex' path='docs/doc[@for="TcpChannel.StopListening"]/*' />
        public void StopListening(Object data)
        {
            if (_serverChannel != null)
            {
                _serverChannel.StopListening(data);
            }
        } // StopListening
All Usage Examples Of System.Runtime.Remoting.Channels.Tcp.TcpServerChannel::StopListening