18 lines
406 B
C#
18 lines
406 B
C#
using Svrnty.CQRS.Abstractions;
|
|
|
|
namespace Svrnty.CQRS.Grpc.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;
|
|
}
|
|
}
|