4 implementations of IEmailSender
Identity.DefaultUI.WebSite (1)
Services\ContosoEmailSender.cs (1)
8public class ContosoEmailSender : IEmailSender
Microsoft.AspNetCore.Identity (1)
NoOpEmailSender.cs (1)
11public sealed class NoOpEmailSender : IEmailSender
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (1)
1510private sealed class TestEmailSender : IEmailSender
RegistrationTests.cs (1)
63private class FakeEmailSender : IEmailSender
19 references to IEmailSender
Microsoft.AspNetCore.Identity (4)
IdentityBuilderExtensions.cs (1)
101builder.Services.TryAddTransient<IEmailSender, NoOpEmailSender>();
NoOpEmailSender.cs (2)
7/// The default <see cref="IEmailSender"/> that does nothing in <see cref="SendEmailAsync(string, string, string)"/>. 8/// It is used to detect that the <see cref="IEmailSender" /> has been customized. If not, Identity UI provides a development
src\Shared\DefaultMessageEmailSender.cs (1)
8internal sealed class DefaultMessageEmailSender<TUser>(IEmailSender emailSender) : IEmailSender<TUser> where TUser : class
Microsoft.AspNetCore.Identity.FunctionalTests (12)
Infrastructure\FunctionalTestsServiceCollectionExtensions.cs (1)
31public static IServiceCollection SetupTestEmailSender(this IServiceCollection services, IEmailSender sender) =>
MapIdentityApiTests.cs (10)
485services.AddSingleton<IEmailSender>(emailSender); 510services.AddSingleton<IEmailSender>(emailSender); 535services.AddSingleton<IEmailSender>(emailSender); 595services.AddSingleton<IEmailSender>(emailSender); 638services.AddSingleton<IEmailSender>(emailSender); 955services.AddSingleton<IEmailSender>(emailSender); 1026services.AddSingleton<IEmailSender>(emailSender); 1117services.AddSingleton<IEmailSender>(emailSender); 1225services.AddSingleton<IEmailSender>(emailSender); 1521private sealed class TestCustomEmailSender(IEmailSender emailSender) : IEmailSender<ApplicationUser>
RegistrationTests.cs (1)
76services.AddSingleton<IEmailSender, FakeEmailSender>();
Microsoft.AspNetCore.Identity.UI (3)
IdentityBuilderUIExtensions.cs (1)
62builder.Services.TryAddTransient<IEmailSender, NoOpEmailSender>();
Properties\AssemblyInfo.cs (1)
7[assembly: TypeForwardedTo(typeof(IEmailSender))]
src\Shared\DefaultMessageEmailSender.cs (1)
8internal sealed class DefaultMessageEmailSender<TUser>(IEmailSender emailSender) : IEmailSender<TUser> where TUser : class