IEventService.cs 683 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ServiceModel;
  6. using Aitex.Core.RT.Event;
  7. namespace Aitex.Core.WCF.Interface
  8. {
  9. [ServiceContract(CallbackContract = typeof(IEventServiceCallback))]
  10. public interface IEventService
  11. {
  12. event Action<EventItem> OnEvent;
  13. event Action<bool> OnLockAndUnlockEvent;
  14. event Func<IEnumerable<string>,bool?> OnUpdateWaferEvent;
  15. [OperationContract]
  16. bool Register(Guid id);
  17. [OperationContract(IsOneWay = true)]
  18. void UnRegister(Guid id);
  19. [OperationContract]
  20. int Heartbeat();
  21. }
  22. }