Handler.cs 389 B

123456789101112
  1. using Application.Abstractions.Messaging;
  2. using Application.Abstractions.Identity;
  3. namespace Application.Features.Director.Role.Delete;
  4. public sealed class Handler(IIdentityRoleWriter roleWriter) : ICommandHandler<Command>
  5. {
  6. public async Task Handle(Command request, CancellationToken ct)
  7. {
  8. await roleWriter.DeleteRoleAsync(request.RoleID ?? string.Empty, ct);
  9. }
  10. }