namespace Infrastructure.Email.Templates.Rendering; /// /// Service for rendering Razor email templates to HTML. /// public interface IEmailTemplateProvider { /// Renders the registration confirmation email template. /// The recipient's username, shown in the greeting. /// The URL the recipient follows to confirm their account. /// A task whose result is the rendered HTML for the email body. Task RenderUserRegisteredEmailAsync(string username, string confirmationLink); /// Renders the resend-confirmation email template. /// The recipient's username, shown in the greeting. /// The URL the recipient follows to confirm their account. /// A task whose result is the rendered HTML for the email body. Task RenderResendConfirmationEmailAsync(string username, string confirmationLink); }