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

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

            AMQFrame frame = new AMQFrame();

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