cloudnet-compose/vote/dotnet/Vote/Messaging/IMessageQueue.cs

12 lines
245 B
C#
Raw Permalink Normal View History

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