2016-11-20 13:34:50 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Tapeti;
|
|
|
|
|
using Tapeti.Annotations;
|
|
|
|
|
|
|
|
|
|
namespace Test
|
|
|
|
|
{
|
2016-12-05 07:00:09 +00:00
|
|
|
|
[DynamicQueue]
|
|
|
|
|
public class TestQueueController : MessageController
|
2016-11-20 13:34:50 +00:00
|
|
|
|
{
|
|
|
|
|
private readonly IPublisher publisher;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TestQueueController(IPublisher publisher)
|
|
|
|
|
{
|
|
|
|
|
this.publisher = publisher;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-12-05 07:00:09 +00:00
|
|
|
|
public PoloMessage Marco(MarcoMessage message)
|
2016-11-20 13:34:50 +00:00
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Marco!");
|
2016-12-05 07:00:09 +00:00
|
|
|
|
return new PoloMessage();
|
2016-11-20 13:34:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void Polo(PoloMessage message)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Polo!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class MarcoMessage
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class PoloMessage
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|