Esempio n. 1
0
        public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Queue, string ConsumerTag, bool NoLocal, bool NoAck, bool Exclusive, bool Nowait, FieldTable Arguments)
        {
            BasicConsumeBody body = new BasicConsumeBody();

            body.Ticket      = Ticket;
            body.Queue       = Queue;
            body.ConsumerTag = ConsumerTag;
            body.NoLocal     = NoLocal;
            body.NoAck       = NoAck;
            body.Exclusive   = Exclusive;
            body.Nowait      = Nowait;
            body.Arguments   = Arguments;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Esempio n. 2
0
 public static AMQFrame CreateAMQFrame(ushort channelId, ushort Ticket, string Queue, string ConsumerTag, bool NoLocal, bool NoAck, bool Exclusive, bool Nowait, FieldTable Arguments)
 {
     BasicConsumeBody body = new BasicConsumeBody();
     body.Ticket = Ticket;
     body.Queue = Queue;
     body.ConsumerTag = ConsumerTag;
     body.NoLocal = NoLocal;
     body.NoAck = NoAck;
     body.Exclusive = Exclusive;
     body.Nowait = Nowait;
     body.Arguments = Arguments;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }