1
0
mirror of synced 2024-11-15 01:33:51 +00:00
PettingZoo/PettingZoo.Core/Connection/MessageInfo.cs
Mark van Renswoude 2755e93440 Started major refactoring
- Upgrade to .NET 5
- Split functionality into libraries
- Tabbed interface for multiple subscribers
- Placeholder for publishing tab
2021-11-28 14:18:21 +01:00

24 lines
682 B
C#

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;
}
}
}