private static void queue_MessageReceived ( object sender, MessageStateEventArgs e ) { MessageEvent me = (MessageEvent)sender; clients.Enqueue(me.Client); }
public void OnMessageReceived ( MessageStateEventArgs e ) { if (MessageReceived != null) { MessageReceived(this, e); } }
private static void queue_MessageReceived (object sender, MessageStateEventArgs e) { MessageEvent me = (MessageEvent)sender; Message received = e.Message; //Console.WriteLine("RESPONSE: {0}", received.ToString()); }