patrick
2019-12-10 1c4426810c71eead57084be8a18ade8d314dd8c4
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
28
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);
    public interface IMonitor
    {
        //List<int> GetMonitorValues(int startAddress, int length);
        void Monitor();
        void ResetAlarm();
 
        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; }
    //}
}