21 lines
387 B
C#
21 lines
387 B
C#
|
using System;
|
||
|
using System.ServiceModel;
|
||
|
using Aitex.Core.RT.Event;
|
||
|
|
||
|
namespace Aitex.Core.WCF.Interface
|
||
|
{
|
||
|
[ServiceContract(CallbackContract = typeof(IEventServiceCallback))]
|
||
|
public interface IEventService
|
||
|
{
|
||
|
event Action<EventItem> OnEvent;
|
||
|
|
||
|
[OperationContract]
|
||
|
bool Register(Guid id);
|
||
|
|
||
|
[OperationContract(IsOneWay = true)]
|
||
|
void UnRegister(Guid id);
|
||
|
|
||
|
int Heartbeat();
|
||
|
}
|
||
|
}
|