예제 #1
0
        public override EventArgs Create(Messages.Message message, EventContext context)
        {
            var eventArgsAttr = message.GetType().GetTypeInfo().GetCustomAttribute <EventArgsAttribute>();

            if (eventArgsAttr != null)
            {
                return(eventArgsAttr.Create());
            }
            else
            {
                return(new SimpleEventArgs(message, context));
            }
        }
예제 #2
0
 public void Tranceive(Messages.Message message)
 {
     Tracer.WriteLineInfo("Sending {0}", message.GetType().Name);
     message.Send(PortStream);
     message.Receive(PortStream);
 }