implement message subscribing and worker

This commit is contained in:
2026-02-14 19:17:05 +01:00
parent 4cdfa1e096
commit 0dadaf1280
19 changed files with 376 additions and 11 deletions

View File

@@ -0,0 +1,5 @@
using AipsCore.Application.Abstract.MessageBroking;
namespace AipsCore.Application.Common.Message.TestMessage;
public record TestMessage(string Text) : IMessage;

View File

@@ -0,0 +1,14 @@
using AipsCore.Application.Abstract.MessageBroking;
namespace AipsCore.Application.Common.Message.TestMessage;
public class TestMessageHandler : IMessageHandler<TestMessage>
{
public Task Handle(TestMessage message, CancellationToken cancellationToken)
{
Console.WriteLine(message.Text);
return Task.CompletedTask;
}
}