mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
26 lines
799 B
C#
26 lines
799 B
C#
using Features.Emails.Services;
|
|
using MediatR;
|
|
using Shared.Application.Emails;
|
|
|
|
namespace Features.Emails.Commands.SendResendConfirmationEmail;
|
|
|
|
/// <summary>
|
|
/// Handles <see cref="SendResendConfirmationEmailCommand" />, the cross-slice command sent by Features.Users
|
|
/// when a user requests a fresh confirmation link.
|
|
/// </summary>
|
|
public class SendResendConfirmationEmailHandler(IEmailDispatcher emailDispatcher)
|
|
: IRequestHandler<SendResendConfirmationEmailCommand>
|
|
{
|
|
public Task Handle(
|
|
SendResendConfirmationEmailCommand request,
|
|
CancellationToken cancellationToken
|
|
)
|
|
{
|
|
return emailDispatcher.SendResendConfirmationEmailAsync(
|
|
request.FirstName,
|
|
request.Email,
|
|
request.ConfirmationToken
|
|
);
|
|
}
|
|
}
|