示例#1
0
        /// <summary>
        /// 关闭连接
        /// </summary>
        public void CloseConnection()
        {
            RpcRequest request = RpcRequest.BuildCloseRequest();

            SyncTcpClient.SendMessage(ClientContainer.Client, JsonConvert.SerializeObject(request), true); //关闭服务端链接
            ClientContainer.Client.Close();
        }