IEPDCallback.cs 993 B

1234567891011121314151617181920212223242526272829303132
  1. using EPInterface.Data;
  2. using System.Collections.Generic;
  3. using System.ServiceModel;
  4. namespace EPInterface
  5. {
  6. // [ServiceContract]
  7. // public interface IEPDCallback
  8. // {
  9. // [OperationContract(IsOneWay = true)]
  10. // void OnNotify(int channel, EPDEventType type, string message); //信息反馈
  11. //[OperationContract(IsOneWay = true)]
  12. //void OnTrigger(int channel, string name, long ticket); //Endpoint Trigger
  13. // }
  14. [ServiceContract]
  15. [ServiceKnownType(typeof(List<object>))]
  16. public interface IEPDCallback
  17. {
  18. [OperationContract(IsOneWay = true)]
  19. void OnNotify(int channel, EPDEventType type, string message); //信息反馈
  20. [OperationContract(IsOneWay = true)]
  21. void OnTrigger(int channel, EPDEventType type, string name, long ticket, string info, object arg); //Endpoint Trigger
  22. [OperationContract(IsOneWay = true)]
  23. void OnOutput(int channel, EPDEventType type, string message);
  24. }
  25. }