1
0
mirror of synced 2024-11-05 02:59:16 +00:00
Tapeti/Connection/TapetiPublisher.cs

23 lines
451 B
C#
Raw Normal View History

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