1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Bro.Common.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Bro.Common.Model.Interface
{
    public delegate void OnMonitorInvokeDelegate(DateTime dt, IDevice device, MonitorSet monitorSet);
    public delegate void OnMonitorAlarmDelegate(DateTime dt, IDevice device, WarningSet warning, bool isAlarmRaised);
    public interface IMonitor
    {
        //List<int> GetMonitorValues(int startAddress, int length);
        void Monitor();
 
        event OnMonitorInvokeDelegate OnMonitorInvoke;
        event OnMonitorAlarmDelegate OnMonitorAlarm;
    }
 
    //public class MonitorInvokePara
    //{
    //    public string MethodCode { get; set; }
    //    public List<int> InputData { get; set; }
    //    //public Action<ProcessResponse> CallBack { get; set; }
    //}
}