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