Esempio n. 1
0
        /// <summary>
        /// 登出
        /// </summary>
        /// <returns></returns>
        public void LogOut()
        {
            if (_alarmHandel >= 0)
            {
                CHCNetSDK.NET_DVR_CloseAlarmChan(_alarmHandel);
                log.Info("撤防成功。");
            }

            if (_userId >= 0)
            {
                // _alarmSignalTimer.Change(-1, -1);
                CHCNetSDK.NET_DVR_Logout(_userId);
                log.Info("退出成功。");
            }
        }