Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Message"/> class.
 /// </summary>
 /// <param name="header">The header.</param>
 /// <param name="body">The body.</param>
 public Message(MessageHeader header, MessageBody body)
 {
     Header = header;
     Body   = body;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Message"/> class.
 /// </summary>
 public Message()
 {
     Header = new MessageHeader(messageId: Guid.Empty, topic: string.Empty, messageType: MessageType.MT_NONE);
     Body   = new MessageBody(string.Empty);
 }