public static AMQFrame CreateAMQFrame(ushort channelId, string ConsumerTag, ulong DeliveryTag, bool Redelivered, string Exchange, string RoutingKey)
        {
            BasicDeliverBody body = new BasicDeliverBody();

            body.ConsumerTag = ConsumerTag;
            body.DeliveryTag = DeliveryTag;
            body.Redelivered = Redelivered;
            body.Exchange    = Exchange;
            body.RoutingKey  = RoutingKey;

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
Ejemplo n.º 2
0
 public static AMQFrame CreateAMQFrame(ushort channelId, string ConsumerTag, ulong DeliveryTag, bool Redelivered, string Exchange, string RoutingKey)
 {
     BasicDeliverBody body = new BasicDeliverBody();
     body.ConsumerTag = ConsumerTag;
     body.DeliveryTag = DeliveryTag;
     body.Redelivered = Redelivered;
     body.Exchange = Exchange;
     body.RoutingKey = RoutingKey;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }