Exemplo n.º 1
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ushort ChannelMax, uint FrameMax, ushort Heartbeat)
 {
     ConnectionTuneOkBody body = new ConnectionTuneOkBody();
     body.ChannelMax = ChannelMax;
     body.FrameMax = FrameMax;
     body.Heartbeat = Heartbeat;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort ChannelMax, uint FrameMax, ushort Heartbeat)
        {
            ConnectionTuneOkBody body = new ConnectionTuneOkBody();

            body.ChannelMax = ChannelMax;
            body.FrameMax   = FrameMax;
            body.Heartbeat  = Heartbeat;

            AMQFrame frame = new AMQFrame();

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