34 references to IEmailSender
IdentitySample.DefaultUI (2)
Areas\Identity\Pages\Account\Register.cshtml.cs (2)
20
private readonly
IEmailSender
<ApplicationUser> _emailSender;
26
IEmailSender
<ApplicationUser> emailSender)
Microsoft.AspNetCore.Identity (4)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
47
var
emailSender = endpoints.ServiceProvider.GetRequiredService<
IEmailSender
<TUser>>();
IdentityBuilderExtensions.cs (1)
100
builder.Services.TryAddTransient(typeof(
IEmailSender
<>), typeof(DefaultMessageEmailSender<>));
src\Shared\DefaultMessageEmailSender.cs (1)
8
internal sealed class DefaultMessageEmailSender<TUser>(IEmailSender emailSender) :
IEmailSender
<TUser> where TUser : class
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
574
services.AddSingleton<
IEmailSender
<ApplicationUser>>(customEmailSender);
1521
private sealed class TestCustomEmailSender(IEmailSender emailSender) :
IEmailSender
<ApplicationUser>
Microsoft.AspNetCore.Identity.UI (26)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (2)
97
private readonly
IEmailSender
<TUser> _emailSender;
105
IEmailSender
<TUser> emailSender)
Areas\Identity\Pages\V4\Account\ForgotPassword.cshtml.cs (2)
54
private readonly
IEmailSender
<TUser> _emailSender;
56
public ForgotPasswordModel(UserManager<TUser> userManager,
IEmailSender
<TUser> emailSender)
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (2)
85
private readonly
IEmailSender
<TUser> _emailSender;
90
IEmailSender
<TUser> emailSender)
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (2)
100
private readonly
IEmailSender
<TUser> _emailSender;
107
IEmailSender
<TUser> emailSender)
Areas\Identity\Pages\V4\Account\RegisterConfirmation.cshtml.cs (2)
48
private readonly
IEmailSender
<TUser> _sender;
50
public RegisterConfirmationModel(UserManager<TUser> userManager,
IEmailSender
<TUser> sender)
Areas\Identity\Pages\V4\Account\ResendEmailConfirmation.cshtml.cs (2)
60
private readonly
IEmailSender
<TUser> _emailSender;
62
public ResendEmailConfirmationModel(UserManager<TUser> userManager,
IEmailSender
<TUser> emailSender)
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (2)
97
private readonly
IEmailSender
<TUser> _emailSender;
105
IEmailSender
<TUser> emailSender)
Areas\Identity\Pages\V5\Account\ForgotPassword.cshtml.cs (2)
54
private readonly
IEmailSender
<TUser> _emailSender;
56
public ForgotPasswordModel(UserManager<TUser> userManager,
IEmailSender
<TUser> emailSender)
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (2)
85
private readonly
IEmailSender
<TUser> _emailSender;
90
IEmailSender
<TUser> emailSender)
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (2)
100
private readonly
IEmailSender
<TUser> _emailSender;
107
IEmailSender
<TUser> emailSender)
Areas\Identity\Pages\V5\Account\RegisterConfirmation.cshtml.cs (2)
48
private readonly
IEmailSender
<TUser> _sender;
50
public RegisterConfirmationModel(UserManager<TUser> userManager,
IEmailSender
<TUser> sender)
Areas\Identity\Pages\V5\Account\ResendEmailConfirmation.cshtml.cs (2)
60
private readonly
IEmailSender
<TUser> _emailSender;
62
public ResendEmailConfirmationModel(UserManager<TUser> userManager,
IEmailSender
<TUser> emailSender)
IdentityBuilderUIExtensions.cs (1)
63
builder.Services.TryAddTransient(typeof(
IEmailSender
<>), typeof(DefaultMessageEmailSender<>));
src\Shared\DefaultMessageEmailSender.cs (1)
8
internal sealed class DefaultMessageEmailSender<TUser>(IEmailSender emailSender) :
IEmailSender
<TUser> where TUser : class