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

            body.ReplyCode = ReplyCode;
            body.ReplyText = ReplyText;
            body.ClassId   = ClassId;
            body.MethodId  = MethodId;

            AMQFrame frame = new AMQFrame();

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