Ejemplo n.º 1
0
 public static MonitorItemBusiness GetInstance()
 {
     if (_instance == null)
     {
         _instance = new MonitorItemBusiness();
     }
     return(_instance);
 }
Ejemplo n.º 2
0
        public CoreCommandSender()
        {
            #region Business初始化
            _collectorBusiness   = Business.CollectorBusiness.GetInstance();
            _messageBusiness     = MessageBusiness.GetInstance();
            _monitorItemBusiness = MonitorItemBusiness.GetInstance();
            #endregion

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


            #endregion
        }