public static Guid Attach() { EventListener eventlistener = new EventListener (); eventlistener.Save (); return eventlistener.Id; }
public static Guid Attach() { EventListener eventlistener = new EventListener(); eventlistener.Save(); return(eventlistener.Id); }
public static List <Event> Update(Guid Id) { EventListener eventlistener = EventListener.Load(Id); List <Event> result = Event.List(eventlistener); eventlistener.Save(); foreach (Event e in result) { Console.WriteLine("SENDING EVENT:\n"); Console.WriteLine("\tID:" + e.Name); Console.WriteLine("\tSORT:" + e.Sort); Console.WriteLine("\tLISTENER:" + Id); Console.WriteLine("\tOWNERID:" + e.OwnerId); Console.WriteLine("\tDATA:" + e.Data); } return(result); }