IEventService.cs 614 B

123456789101112131415161718192021222324252627
  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. [OperationContract]
  15. bool Register(Guid id);
  16. [OperationContract(IsOneWay = true)]
  17. void UnRegister(Guid id);
  18. [OperationContract]
  19. int Heartbeat();
  20. }
  21. }