This commit is contained in:
2026-03-04 23:13:21 +01:00
parent a2baa3d24c
commit 2fa0f3cb8b
4 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
using AipsCore.Application.Abstract.MessageBroking;
using AipsCore.Application.Models.Whiteboard.Command.RejectUserRequestToJoin;
namespace AipsCore.Application.Common.Message.RejectUserRequestToJoin;
public record RejectUserRequestToJoinMessage(RejectUserRequestToJoinCommand Command): IMessage;

View File

@@ -0,0 +1,19 @@
using AipsCore.Application.Abstract;
using AipsCore.Application.Abstract.MessageBroking;
namespace AipsCore.Application.Common.Message.RejectUserRequestToJoin;
public class RejectUserRequestToJoinMessageHandler : IMessageHandler<RejectUserRequestToJoinMessage>
{
private readonly IDispatcher _dispatcher;
public RejectUserRequestToJoinMessageHandler(IDispatcher dispatcher)
{
_dispatcher = dispatcher;
}
public async Task Handle(RejectUserRequestToJoinMessage message, CancellationToken cancellationToken)
{
await _dispatcher.Execute(message.Command, cancellationToken);
}
}