1
0
mirror of synced 2024-11-24 01:33:50 +00:00
Tapeti/Examples/07-ParallelizationTest/ParallelizationMessageController.cs

27 lines
772 B
C#
Raw Normal View History

using System.Threading.Tasks;
using Messaging.TapetiExample;
using Tapeti.Annotations;
namespace _07_ParallelizationTest
{
[MessageController]
[DynamicQueue("tapeti.example.07")]
public class ParallelizationMessageController
{
private readonly IMessageParallelization messageParallelization;
public ParallelizationMessageController(IMessageParallelization messageParallelization)
{
this.messageParallelization = messageParallelization;
}
2022-02-09 08:19:56 +00:00
#pragma warning disable IDE0060 // Remove unused parameter
public async Task HandleSpeedTestMessage(SpeedTestMessage message)
{
await messageParallelization.WaitForBatch();
}
2022-02-09 08:19:56 +00:00
#pragma warning restore IDE0060
}
}