2016-11-17 16:33:27 +00:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Connection
|
2016-11-16 22:11:05 +00:00
|
|
|
|
{
|
|
|
|
|
public class TapetiPublisher : IPublisher
|
|
|
|
|
{
|
|
|
|
|
private readonly TapetiWorker worker;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TapetiPublisher(TapetiWorker worker)
|
|
|
|
|
{
|
|
|
|
|
this.worker = worker;
|
|
|
|
|
}
|
2016-11-17 16:33:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Task Publish(object message)
|
|
|
|
|
{
|
|
|
|
|
return worker.Publish(message);
|
|
|
|
|
}
|
2016-11-16 22:11:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|