18 lines
385 B
C#
18 lines
385 B
C#
using System.Threading.Tasks;
|
|
using RabbitMQ.Client;
|
|
|
|
namespace Tapeti
|
|
{
|
|
public interface IPublisher
|
|
{
|
|
Task Publish(object message);
|
|
}
|
|
|
|
|
|
public interface IAdvancedPublisher : IPublisher
|
|
{
|
|
Task Publish(object message, IBasicProperties properties);
|
|
Task PublishDirect(object message, string queueName, IBasicProperties properties);
|
|
}
|
|
}
|