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);
        }
Esempio n. 2
0
 public AMQMessage(IContentHeaderProperties properties)
     : this(properties, -1)
 {
 }
Esempio n. 3
0
 public AMQMessage(IContentHeaderProperties properties, long deliveryTag)
 {
     _contentHeaderProperties = properties;
     _deliveryTag = deliveryTag;
 }
 public AMQMessage(IContentHeaderProperties properties)
     : this(properties, -1)
 {
 }
 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;
 }
Esempio 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);    
 }
Esempio n. 9
0
 public ContentHeaderBody(ushort classId, ushort weight, IContentHeaderProperties props, uint bodySize)
     : this(props, classId)
 {            
     Weight = weight;
     BodySize = bodySize;
 }
Esempio n. 10
0
 public ContentHeaderBody(IContentHeaderProperties props, ushort classId)
 {
     Properties = props;
     ClassId = classId;
 }