cloudnet-compose/worker/dotnet/Worker/Messaging/IMessageQueue.cs
2018-09-21 19:23:31 +01:00

12 lines
249 B
C#

using NATS.Client;
using Worker.Messaging.Messages;
namespace Worker.Messaging
{
public interface IMessageQueue
{
IConnection CreateConnection();
void Publish<TMessage>(TMessage message) where TMessage : Message;
}
}