mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-06-01 18:14:01 +00:00
30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
namespace Infrastructure.Email.Templates.Rendering;
|
|
|
|
/// <summary>
|
|
/// Service for rendering Razor email templates to HTML.
|
|
/// </summary>
|
|
public interface IEmailTemplateProvider
|
|
{
|
|
/// <summary>
|
|
/// Renders the UserRegisteredEmail template with the specified parameters.
|
|
/// </summary>
|
|
/// <param name="username">The username to include in the email</param>
|
|
/// <param name="confirmationLink">The email confirmation link</param>
|
|
/// <returns>The rendered HTML string</returns>
|
|
Task<string> RenderUserRegisteredEmailAsync(
|
|
string username,
|
|
string confirmationLink
|
|
);
|
|
|
|
/// <summary>
|
|
/// Renders the ResendConfirmation template with the specified parameters.
|
|
/// </summary>
|
|
/// <param name="username">The username to include in the email</param>
|
|
/// <param name="confirmationLink">The new confirmation link</param>
|
|
/// <returns>The rendered HTML string</returns>
|
|
Task<string> RenderResendConfirmationEmailAsync(
|
|
string username,
|
|
string confirmationLink
|
|
);
|
|
}
|