2019-08-18 11:41:29 +02:00
|
|
|
|
using Messaging.TapetiExample;
|
2023-04-14 15:47:27 +02:00
|
|
|
|
using Tapeti.Config.Annotations;
|
2019-08-18 11:41:29 +02: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 11:26:56 +01:00
|
|
|
|
#pragma warning disable IDE0060 // Remove unused parameter
|
2019-08-18 11:41:29 +02:00
|
|
|
|
public void HandleSpeedTestMessage(SpeedTestMessage message)
|
|
|
|
|
{
|
|
|
|
|
messageCounter.Add();
|
|
|
|
|
}
|
2022-02-09 11:26:56 +01:00
|
|
|
|
#pragma warning restore IDE0060
|
2019-08-18 11:41:29 +02:00
|
|
|
|
}
|
|
|
|
|
}
|