using Features.Emails.Services; using MediatR; using Shared.Application.Emails; namespace Features.Emails.Commands.SendResendConfirmationEmail; /// /// Handles , the cross-slice command sent by Features.Auth /// when a user requests a fresh confirmation link. /// /// Dispatcher used to render and send the email. public class SendResendConfirmationEmailHandler(IEmailDispatcher emailDispatcher) : IRequestHandler { public Task Handle(SendResendConfirmationEmailCommand request, CancellationToken cancellationToken) => emailDispatcher.SendResendConfirmationEmailAsync(request.FirstName, request.Email, request.ConfirmationToken); }