2019-10-16 11:54:43 +00:00
|
|
|
|
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);
|
2021-09-04 09:33:59 +00:00
|
|
|
|
|
|
|
|
|
int GetMessageCount();
|
2021-05-29 19:51:58 +00:00
|
|
|
|
IEnumerable<Message> Deserialize(IModel channel);
|
2019-10-16 11:54:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|