Esempio n. 1
0
 /// <summary>
 /// Initializes a new Data body <see cref="AmqpAnnotatedMessage"/>.
 /// </summary>
 /// <param name="dataBody">The data sections comprising the message body.
 /// <seealso href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-data"/>
 /// </param>
 public AmqpAnnotatedMessage(IEnumerable <ReadOnlyMemory <byte> > dataBody)
 {
     Body = new AmqpDataMessageBody(dataBody);
 }
 /// <summary>
 /// Creates a new Data body <see cref="AmqpAnnotatedMessage"/>.
 /// </summary>
 /// <param name="dataBody">The data sections comprising the message body.
 /// <seealso href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-data"/>
 /// </param>
 public AmqpAnnotatedMessage(IEnumerable <BinaryData> dataBody)
 {
     Body = new AmqpDataMessageBody(dataBody);
 }