Esempio n. 1
0
 /// <summary>
 /// Build an error message.
 /// </summary>
 /// <param name="message">Incoming message.</param>
 public static ErrorMessage BuildErrorMessage(AbstractMessage message)
 {
     return new ErrorMessage
     {
         MessageId = GenerateUuid(),
         CorrelationId = message.MessageId,
         Timestamp = GenerateTimestamp()
     };
 }
Esempio n. 2
0
 /// <summary>
 /// Build an acknowledge message.
 /// </summary>
 /// <param name="message">Incoming message.</param>
 public static AcknowledgeMessage BuildAcknowledgeMessage(AbstractMessage message)
 {
     return new AcknowledgeMessage
                {
                    MessageId = GenerateUuid(),
                    CorrelationId = message.MessageId,
                    Timestamp = GenerateTimestamp()
                };
 }