Beispiel #1
0
 /// <summary>
 /// Creates a message ID. If the message is a request, the peer address is the sender.
 /// Otherwise, it is the recipient. This is due to the fact that depending on the direction,
 /// peer addresses may change, but it is still considered the same message.
 /// </summary>
 /// <param name="message">The message.</param>
 public MessageId(Message message)
     : this(message.MessageId, message.IsRequest() ? message.Sender : message.Recipient)
 {
 }