1
0
mirror of synced 2024-11-15 01:33:51 +00:00
PettingZoo/Model/MessageInfo.cs

32 lines
740 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
2016-06-20 10:30:03 +00:00
namespace PettingZoo.Model
{
public class MessageInfo
{
public DateTime Timestamp { get; set; }
public string Exchange { get; set; }
2016-06-20 10:30:03 +00:00
public string RoutingKey { get; set; }
public byte[] Body { get; set; }
public Dictionary<string, string> Properties;
public string ContentType
{
get
{
return Properties != null && Properties.ContainsKey(RabbitMQProperties.ContentType)
? Properties[RabbitMQProperties.ContentType]
2016-06-20 10:30:03 +00:00
: "";
}
}
public MessageInfo()
{
Timestamp = DateTime.Now;
}
2016-06-20 10:30:03 +00:00
}
}