Exemplo n.º 1
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ushort ReplyCode, string ReplyText, string Exchange, string RoutingKey)
 {
     StreamReturnBody body = new StreamReturnBody();
     body.ReplyCode = ReplyCode;
     body.ReplyText = ReplyText;
     body.Exchange = Exchange;
     body.RoutingKey = RoutingKey;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Exemplo n.º 2
0
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort ReplyCode, string ReplyText, string Exchange, string RoutingKey)
        {
            StreamReturnBody body = new StreamReturnBody();

            body.ReplyCode  = ReplyCode;
            body.ReplyText  = ReplyText;
            body.Exchange   = Exchange;
            body.RoutingKey = RoutingKey;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }