protected virtual void OnChannelMessageDispatched(ChannelMessageEventArgs e)
        {
            EventHandler <ChannelMessageEventArgs> handler = ChannelMessageDispatched;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
        protected virtual void OnChannelMessageReceived(ChannelMessageEventArgs e)
        {
            EventHandler <ChannelMessageEventArgs> handler = ChannelMessageReceived;

            if (handler != null)
            {
                context.Post(delegate(object dummy)
                {
                    handler(this, e);
                }, null);
            }
        }
 public static ShortMessageEventArgs FromChannelMessage(ChannelMessageEventArgs arg)
 {
     return(new ShortMessageEventArgs(arg.Message));
 }
Example #4
0
 private void EventSource_ChannelMessageReceived(object sender, ChannelMessageEventArgs e)
 {
     FOutDevice.Send(e.Message);
 }