1
0
mirror of synced 2024-11-22 17:23:49 +00:00
Tapeti/Tapeti.Cmd/Serialization/IMessageSerializer.cs
Mark van Renswoude 34da354fc2 Start of Tapeti.Cmd [ci skip]
Support for basic queue to/from disk operations
2019-10-16 13:54:43 +02:00

25 lines
538 B
C#

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