Example #1
0
 public MessageItemModel(Message message)
 {
     MessageId    = message.Id;
     TimeStamp    = message.Header.TimeStamp;
     MessageType  = message.Header.MessageType.ToString();
     HandledCount = message.Header.HandledCount;
     Bag          = JsonConvert.SerializeObject(message.Header.Bag);
     MessageBody  = message.Body.Value;
     Topic        = message.Header.Topic;
     TimeStampUI  = TimeStamp.Humanize();
 }