Esempio n. 1
0
 /// <summary>
 /// 主动断开链接
 /// </summary>
 public void CloseC(int i)
 {
     Lognet.Log.Warn("关闭链接箱号识别系统");
     SetMessage?.Invoke("Container Close");
     _AxVECONclient.Disconnect();
     _TimerConnect2Server.Change(-1, -1);
     _AutoLink = false;
 }
Esempio n. 2
0
        /// <summary>
        /// 主动断开链接
        /// </summary>
        public void CloseC(int i)
        {
            _Log.logWarn.Warn("Container Close");
            SetMessageAction?.Invoke("Container Close");

            try
            {
                _AxVECONclient.Disconnect();
            }
            catch (Exception ex)
            {
                _Log.logError.Error("断开箱号链接出错", ex);
            }

            _TimerConnect2Server.Change(-1, -1);
            _AutoLink = false;
        }