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