Exemple #1
0
        public static AMQFrame CreateAMQFrame(ushort channelId, ulong DeliveryTag, bool Redelivered, string Exchange, string RoutingKey, uint MessageCount)
        {
            BasicGetOkBody body = new BasicGetOkBody();

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

            AMQFrame frame = new AMQFrame();

            frame.Channel   = channelId;
            frame.BodyFrame = body;
            return(frame);
        }
 public static AMQFrame CreateAMQFrame(ushort channelId, ulong DeliveryTag, bool Redelivered, string Exchange, string RoutingKey, uint MessageCount)
 {
     BasicGetOkBody body = new BasicGetOkBody();
     body.DeliveryTag = DeliveryTag;
     body.Redelivered = Redelivered;
     body.Exchange = Exchange;
     body.RoutingKey = RoutingKey;
     body.MessageCount = MessageCount;
     		 
     AMQFrame frame = new AMQFrame();
     frame.Channel = channelId;
     frame.BodyFrame = body;
     return frame;
 }