yessir
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Svrnty.CQRS.Abstractions;
|
||||
|
||||
namespace Svrnty.Sample;
|
||||
|
||||
public record RemoveUserCommand
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
}
|
||||
|
||||
public class RemoveUserCommandHandler : ICommandHandler<RemoveUserCommand>
|
||||
{
|
||||
public Task HandleAsync(RemoveUserCommand command, CancellationToken cancellationToken = default)
|
||||
{
|
||||
// Simulate removing a user
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user