EventServiceCallback.cs 580 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ServiceModel;
  6. using System.IO;
  7. namespace VirgoUI.Client.Models.Sys
  8. {
  9. //[CallbackBehavior(ConcurrencyMode=ConcurrencyMode.Multiple, UseSynchronizationContext=false)]
  10. //public class EventServiceCallback : IEventServiceCallback
  11. //{
  12. // public event Action<EventItem> FireEvent;
  13. // public void SendEvent(EventItem ev)
  14. // {
  15. // if (FireEvent != null)
  16. // {
  17. // FireEvent(ev);
  18. // }
  19. // }
  20. //}
  21. }