示例#1
0
 public void SendToRabbit(int value)
 {
     using (var bus = RabbitHutch.CreateBus("host=localhost"))
     {
         var pi = new PImodel {
             piValue = value
         };
         bus.Send("CalculatedReplyQueue", pi);
     }
 }
示例#2
0
 private void HandleTextMessage(PImodel obj)
 {
     SendToRabbit(obj.piValue);
 }