Handler.cs 419 B

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