public void PopulateFromBuffer(ByteBuffer buffer, uint size)
        {
            ClassId  = buffer.GetUInt16();
            Weight   = buffer.GetUInt16();
            BodySize = buffer.GetUInt64();
            ushort propertyFlags = buffer.GetUInt16();
            ContentHeaderPropertiesFactory factory = ContentHeaderPropertiesFactory.GetInstance();

            Properties = factory.CreateContentHeaderProperties(ClassId, propertyFlags, buffer);
        }
Ejemplo n.º 2
0
 public AMQMessage(IContentHeaderProperties properties)
     : this(properties, -1)
 {
 }
Ejemplo n.º 3
0
 public AMQMessage(IContentHeaderProperties properties, long deliveryTag)
 {
     _contentHeaderProperties = properties;
     _deliveryTag = deliveryTag;
 }
Ejemplo n.º 4
0
 public AMQMessage(IContentHeaderProperties properties)
     : this(properties, -1)
 {
 }
Ejemplo n.º 5
0
 public AMQMessage(IContentHeaderProperties properties, long deliveryTag)
 {
     _contentHeaderProperties = properties;
     _deliveryTag             = deliveryTag;
 }
 public ContentHeaderBody(ushort classId, ushort weight, IContentHeaderProperties props, uint bodySize)
     : this(props, classId)
 {
     Weight   = weight;
     BodySize = bodySize;
 }
 public ContentHeaderBody(IContentHeaderProperties props, ushort classId)
 {
     Properties = props;
     ClassId    = classId;
 }
Ejemplo n.º 8
0
 public void PopulateFromBuffer(ByteBuffer buffer, uint size)
 {     
     ClassId = buffer.GetUInt16();
     Weight = buffer.GetUInt16();
     BodySize = buffer.GetUInt64();
     ushort propertyFlags = buffer.GetUInt16();
     ContentHeaderPropertiesFactory factory = ContentHeaderPropertiesFactory.GetInstance();
     Properties = factory.CreateContentHeaderProperties(ClassId, propertyFlags, buffer);    
 }
Ejemplo n.º 9
0
 public ContentHeaderBody(ushort classId, ushort weight, IContentHeaderProperties props, uint bodySize)
     : this(props, classId)
 {            
     Weight = weight;
     BodySize = bodySize;
 }
Ejemplo n.º 10
0
 public ContentHeaderBody(IContentHeaderProperties props, ushort classId)
 {
     Properties = props;
     ClassId = classId;
 }