Exemplo n.º 1
0
        public static Guid Attach()
        {
            EventListener eventlistener = new EventListener ();
            eventlistener.Save ();

            return eventlistener.Id;
        }
Exemplo n.º 2
0
        public static Guid Attach()
        {
            EventListener eventlistener = new EventListener();

            eventlistener.Save();

            return(eventlistener.Id);
        }
Exemplo n.º 3
0
        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);
        }