public static AMQFrame CreateAMQFrame(ushort channelId, ushort ReplyCode, string ReplyText, ushort ClassId, ushort MethodId)
 {
     ConnectionCloseBody body = new ConnectionCloseBody();
     body.ReplyCode = ReplyCode;
     body.ReplyText = ReplyText;
     body.ClassId = ClassId;
     body.MethodId = MethodId;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
Esempio n. 2
0
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort ReplyCode, string ReplyText, ushort ClassId, ushort MethodId)
        {
            ConnectionCloseBody body = new ConnectionCloseBody();

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

            AMQFrame frame = new AMQFrame();

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