12 lines
245 B
C#
12 lines
245 B
C#
using NATS.Client;
|
|
using Vote.Messaging.Messages;
|
|
|
|
namespace Vote.Messaging
|
|
{
|
|
public interface IMessageQueue
|
|
{
|
|
IConnection CreateConnection();
|
|
|
|
void Publish<TMessage>(TMessage message) where TMessage : Message;
|
|
}
|
|
} |