1 write to Services
Microsoft.Extensions.Identity.Core (1)
IdentityBuilder.cs (1)
31Services = services;
27 references to Services
Microsoft.AspNetCore.Identity (10)
IdentityBuilderExtensions.cs (10)
43builder.Services.AddHttpContextAccessor(); 44builder.Services.AddScoped(typeof(ISecurityStampValidator), typeof(SecurityStampValidator<>).MakeGenericType(builder.UserType)); 45builder.Services.AddScoped(typeof(ITwoFactorSecurityStampValidator), typeof(TwoFactorSecurityStampValidator<>).MakeGenericType(builder.UserType)); 46builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<SecurityStampValidatorOptions>, PostConfigureSecurityStampValidatorOptions>()); 59builder.Services.AddScoped(managerType); 81builder.Services.AddScoped(typeof(TSignInManager), services => services.GetRequiredService(managerType)); 83builder.Services.AddScoped(managerType, typeof(TSignInManager)); 100builder.Services.TryAddTransient(typeof(IEmailSender<>), typeof(DefaultMessageEmailSender<>)); 101builder.Services.TryAddTransient<IEmailSender, NoOpEmailSender>(); 102builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, IdentityEndpointsJsonOptionsSetup>());
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
IdentityEntityFrameworkBuilderExtensions.cs (1)
25AddStores(builder.Services, builder.UserType, builder.RoleType, typeof(TContext));
Microsoft.AspNetCore.Identity.UI (5)
IdentityBuilderUIExtensions.cs (5)
35builder.Services 59builder.Services.ConfigureOptions( 62builder.Services.TryAddTransient<IEmailSender, NoOpEmailSender>(); 63builder.Services.TryAddTransient(typeof(IEmailSender<>), typeof(DefaultMessageEmailSender<>)); 71var environment = builder.Services.Where(d => d.ServiceType == typeof(IWebHostEnvironment)).ToArray();
Microsoft.Extensions.Identity.Core (11)
IdentityBuilder.cs (11)
77Services.AddScoped(serviceType, concreteType); 106Services.AddScoped<IdentityErrorDescriber, TDescriber>(); 150Services.Configure<IdentityOptions>(options => 164Services.AddTransient(provider); 184Services.AddScoped(customType, services => services.GetRequiredService(userManagerType)); 199Services.TryAddScoped<RoleManager<TRole>>(); 200Services.AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(UserType), typeof(UserClaimsPrincipalFactory<,>).MakeGenericType(UserType, RoleType)); 229Services.AddSingleton<IPersonalDataProtector, DefaultPersonalDataProtector>(); 230Services.AddSingleton<ILookupProtector, TProtector>(); 231Services.AddSingleton<ILookupProtectorKeyRing, TKeyRing>(); 270Services.AddScoped(typeof(TRoleManager), services => services.GetRequiredService(managerType));