Beispiel #1
0
        //public event RecordStateChanged OnRecordStateChanged = null;

        public CMonitorAlarmManager(IMonitorSystemContext context)
        {
            mSystemContext = context;

            mAlarmQueueLength  = 0;
            mAutoTransactDelay = 0;

            mTimer.Enabled  = false;
            mTimer.Interval = 5000;
            mTimer.Elapsed += new System.Timers.ElapsedEventHandler(OnTimerElapse);

            mSyncPostAlarm      = SyncPostAlarm;
            mSyncTransactAlarm  = SyncTransactAlarm;
            mDoAlarmListChanged = DoAlarmListChanged;

            mSystemContext.MonitorManager.OnMonitorAlarm  += new MonitorAlarmEvent(DoMonitorAlarm);
            mSystemContext.MonitorManager.OnTransactAlarm += new TransactAlarm(DoTransactAlarm);
        }
Beispiel #2
0
        public CMonitor(IMonitorManager manager, IMonitorConfig config, IMonitorType type)
        {
            mDoMonitorAlarm = DoMonitorAlarm;

            Init(manager, config, type);
        }
Beispiel #3
0
 public CMonitor()
 {
     mDoMonitorAlarm = DoMonitorAlarm;
 }