2019-08-18 09:41:29 +00:00
|
|
|
|
using Messaging.TapetiExample;
|
2023-04-14 13:47:27 +00:00
|
|
|
|
using Tapeti.Config.Annotations;
|
2019-08-18 09:41:29 +00:00
|
|
|
|
|
|
|
|
|
namespace _05_SpeedTest
|
|
|
|
|
{
|
|
|
|
|
[MessageController]
|
|
|
|
|
[DynamicQueue("tapeti.example.05")]
|
|
|
|
|
public class SpeedMessageController
|
|
|
|
|
{
|
|
|
|
|
private readonly IMessageCounter messageCounter;
|
|
|
|
|
|
|
|
|
|
public SpeedMessageController(IMessageCounter messageCounter)
|
|
|
|
|
{
|
|
|
|
|
this.messageCounter = messageCounter;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2022-02-09 10:26:56 +00:00
|
|
|
|
#pragma warning disable IDE0060 // Remove unused parameter
|
2019-08-18 09:41:29 +00:00
|
|
|
|
public void HandleSpeedTestMessage(SpeedTestMessage message)
|
|
|
|
|
{
|
|
|
|
|
messageCounter.Add();
|
|
|
|
|
}
|
2022-02-09 10:26:56 +00:00
|
|
|
|
#pragma warning restore IDE0060
|
2019-08-18 09:41:29 +00:00
|
|
|
|
}
|
|
|
|
|
}
|