using System; using System.Collections.Generic; using System.Linq; using System.Text; using Aitex.Core.RT.Event; using Aitex.Core.Util; using System.ServiceModel; using Aitex.Core.WCF.Interface; using System.IO; namespace Aitex.Core.WCF { [CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple, UseSynchronizationContext=false)] public class EventServiceCallback : IEventServiceCallback { public event Action FireEvent; public event Action OnLockAndUnlockEvent; public event Func,bool?> OnUpdateWaferEvent;//通知获取wafer更新数据 public void SendEvent(EventItem ev) { if (FireEvent != null) { FireEvent(ev); } } public void SendLockEvent(bool isLock) { if (OnLockAndUnlockEvent != null) { OnLockAndUnlockEvent(isLock); } } public bool? SendChangedWaferModule(IEnumerable changedModule)=> OnUpdateWaferEvent?.Invoke(changedModule); } }