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

@@ -1,6 +1,7 @@
using AipsCore.Application.Abstract;
using AipsCore.Application.Abstract.MessageBroking;
using AipsCore.Application.Common.Authentication;
using AipsCore.Application.Common.Message.TestMessage;
using AipsCore.Application.Models.User.Command.LogIn;
using AipsCore.Application.Models.User.Command.SignUp;
using AipsCore.Application.Models.User.Query.GetUser;
@@ -40,6 +41,7 @@ public class UserController : ControllerBase
[HttpPost("test")]
public async Task Test(IMessagePublisher publisher)
{
await publisher.PublishAsync("Test poruka");
var test = new TestMessage("ovo je test poruka");
await publisher.PublishAsync(test);
}
}