1
0
mirror of synced 2024-11-14 22:33:50 +00:00
Tapeti/Tapeti.Cmd/Serialization/IMessageSerializer.cs

25 lines
538 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using RabbitMQ.Client;
namespace Tapeti.Cmd.Serialization
{
public class Message
{
public ulong DeliveryTag;
public bool Redelivered;
public string Exchange;
public string RoutingKey;
public string Queue;
public IBasicProperties Properties;
public byte[] Body;
}
public interface IMessageSerializer : IDisposable
{
void Serialize(Message message);
IEnumerable<Message> Deserialize();
}
}