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