cloudnet-compose/worker/dotnet/Worker/Messaging/IMessageQueue.cs

12 lines
249 B
C#
Raw Normal View History

2018-09-21 20:23:31 +02:00
using NATS.Client;
using Worker.Messaging.Messages;
namespace Worker.Messaging
{
public interface IMessageQueue
{
IConnection CreateConnection();
void Publish<TMessage>(TMessage message) where TMessage : Message;
}
}