Пример #1
0
        private bool _checkState = false;         //轮询监测的开关

        public static CollectorBusiness GetInstance()
        {
            if (_instance == null)
            {
                _instance = new CollectorBusiness();
            }
            return(_instance);
        }
Пример #2
0
        public CoreCommandSender()
        {
            #region Business初始化
            _collectorBusiness   = Business.CollectorBusiness.GetInstance();
            _messageBusiness     = MessageBusiness.GetInstance();
            _monitorItemBusiness = MonitorItemBusiness.GetInstance();
            #endregion

            #region 初始化事件
            CollectorCheckState += CoreCommandSender_CollectorCheckState;


            #endregion
        }