Пример #1
0
 private void _builder_OnReceiveMessage(object sender, ReceiveMessageEventArgs e)
 {
     if (OnReceiveMessage != null)
     {
         OnReceiveMessage(this, e);
     }
 }
Пример #2
0
 private void queue_OnReceiveData(object sender, ReceiveDataEventArgs e)
 {
     if (OnReceiveMessage != null)
     {
         var args = new ReceiveMessageEventArgs()
         {
             Message = Message.Decode(e.Data)
         };
         OnReceiveMessage(this, args);
     }
 }