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

24 lines
682 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
namespace PettingZoo.Core.Connection
{
public class MessageInfo
{
public DateTime Timestamp { get; }
public string Exchange { get; }
public string RoutingKey { get; }
public byte[] Body { get; }
public IDictionary<string, string> Properties { get; }
public MessageInfo(string exchange, string routingKey, byte[] body, IDictionary<string, string> properties, DateTime timestamp)
{
Exchange = exchange;
RoutingKey = routingKey;
Body = body;
Properties = properties;
Timestamp = timestamp;
}
}
}