| 1234567891011121314151617181920212223242526272829303132 |
- using EPInterface.Data;
- using System.Collections.Generic;
- using System.ServiceModel;
- namespace EPInterface
- {
- // [ServiceContract]
- // public interface IEPDCallback
- // {
- // [OperationContract(IsOneWay = true)]
- // void OnNotify(int channel, EPDEventType type, string message); //信息反馈
- //[OperationContract(IsOneWay = true)]
- //void OnTrigger(int channel, string name, long ticket); //Endpoint Trigger
- // }
- [ServiceContract]
- [ServiceKnownType(typeof(List<object>))]
- public interface IEPDCallback
- {
- [OperationContract(IsOneWay = true)]
- void OnNotify(int channel, EPDEventType type, string message); //信息反馈
- [OperationContract(IsOneWay = true)]
- void OnTrigger(int channel, EPDEventType type, string name, long ticket, string info, object arg); //Endpoint Trigger
- [OperationContract(IsOneWay = true)]
- void OnOutput(int channel, EPDEventType type, string message);
- }
- }
|