IEventService.cs 510 B

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