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

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

            AMQFrame frame = new AMQFrame();

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