Exemplo n.º 1
0
 public static AMQFrame CreateAMQFrame(ushort channelId, string Queue, uint MessageCount, uint ConsumerCount)
 {
     QueueDeclareOkBody body = new QueueDeclareOkBody();
     body.Queue = Queue;
     body.MessageCount = MessageCount;
     body.ConsumerCount = ConsumerCount;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }
        public static AMQFrame CreateAMQFrame(ushort channelId, string Queue, uint MessageCount, uint ConsumerCount)
        {
            QueueDeclareOkBody body = new QueueDeclareOkBody();

            body.Queue         = Queue;
            body.MessageCount  = MessageCount;
            body.ConsumerCount = ConsumerCount;

            AMQFrame frame = new AMQFrame();

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