1 instantiation of TwoFactorSecurityStampValidator
Microsoft.AspNetCore.Identity.Test (1)
SecurityStampValidatorTest.cs (1)
342
services.AddSingleton<ITwoFactorSecurityStampValidator>(new
TwoFactorSecurityStampValidator
<PocoUser>(options.Object, signInManager.Object, new LoggerFactory()));
4 references to TwoFactorSecurityStampValidator
Microsoft.AspNetCore.Identity (2)
IdentityBuilderExtensions.cs (1)
45
builder.Services.AddScoped(typeof(ITwoFactorSecurityStampValidator), typeof(
TwoFactorSecurityStampValidator
<>).MakeGenericType(builder.UserType));
IdentityServiceCollectionExtensions.cs (1)
102
services.TryAddScoped<ITwoFactorSecurityStampValidator,
TwoFactorSecurityStampValidator
<TUser>>();
Microsoft.AspNetCore.Identity.Test (2)
IdentityBuilderTest.cs (2)
214
Assert.IsType<
TwoFactorSecurityStampValidator
<PocoUser>>(provider.GetRequiredService<ITwoFactorSecurityStampValidator>());
234
Assert.IsType<
TwoFactorSecurityStampValidator
<PocoUser>>(provider.GetRequiredService<ITwoFactorSecurityStampValidator>());