Esempio n. 1
0
 public static AMQFrame CreateAMQFrame(ushort channelId, uint PrefetchSize, ushort PrefetchCount, uint ConsumeRate, bool Global)
 {
     StreamQosBody body = new StreamQosBody();
     body.PrefetchSize = PrefetchSize;
     body.PrefetchCount = PrefetchCount;
     body.ConsumeRate = ConsumeRate;
     body.Global = Global;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
        public static AMQFrame CreateAMQFrame(ushort channelId, uint PrefetchSize, ushort PrefetchCount, uint ConsumeRate, bool Global)
        {
            StreamQosBody body = new StreamQosBody();

            body.PrefetchSize  = PrefetchSize;
            body.PrefetchCount = PrefetchCount;
            body.ConsumeRate   = ConsumeRate;
            body.Global        = Global;

            AMQFrame frame = new AMQFrame();

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