示例#1
0
        public void stop()
        {
            string localAddress = "";

            if (this.currentChannel != null)
            {
                localAddress = this.currentChannel.LocalAddress.ToString();
                currentChannel.CloseAsync();
            }
            if (workGroup != null)
            {
                workGroup.ShutdownGracefullyAsync();
            }
            _connectListener.onClosed(localAddress);
        }