Exemplo n.º 1
0
        /// <summary>
        /// 关闭 TCP 注册服务客户端
        /// </summary>
        private void close()
        {
#if NoAutoCSer
            throw new Exception();
#else
            registerClient.Dispose();
#endif
            clientId.Tick = 0;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 关闭 TCP 注册服务客户端
        /// </summary>
        private void close()
        {
#if NoAutoCSer
            throw new Exception();
#else
            readerClient.Dispose();
            if (registerClient != null)
            {
                registerClient.Dispose();
                registerClient = null;
            }
#endif
            clientId.Tick = 0;
        }