3 implementations of IRoleValidator
Microsoft.AspNetCore.Identity.Specification.Tests (1)
IdentitySpecificationTestBase.cs (1)
138private sealed class AlwaysBadValidator : IUserValidator<TUser>, IRoleValidator<TRole>,
Microsoft.AspNetCore.Identity.Test (1)
IdentityBuilderTest.cs (1)
271private class MyUberThingy : IUserValidator<PocoUser>, IPasswordValidator<PocoUser>, IRoleValidator<PocoRole>, IUserStore<PocoUser>, IRoleStore<PocoRole>
Microsoft.Extensions.Identity.Core (1)
RoleValidator.cs (1)
15public class RoleValidator<TRole> : IRoleValidator<TRole> where TRole : class
19 references to IRoleValidator
Microsoft.AspNetCore.Identity (2)
AspNetRoleManager.cs (1)
27IEnumerable<IRoleValidator<TRole>> roleValidators,
IdentityServiceCollectionExtensions.cs (1)
97services.TryAddScoped<IRoleValidator<TRole>, RoleValidator<TRole>>();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
src\Identity\test\Shared\MockHelpers.cs (2)
27var roles = new List<IRoleValidator<TRole>>(); 57var roles = new List<IRoleValidator<TRole>>();
Microsoft.AspNetCore.Identity.InMemory.Test (2)
src\Identity\test\Shared\MockHelpers.cs (2)
27var roles = new List<IRoleValidator<TRole>>(); 57var roles = new List<IRoleValidator<TRole>>();
Microsoft.AspNetCore.Identity.Test (6)
IdentityBuilderTest.cs (4)
22Assert.NotNull(sp.GetRequiredService<IRoleValidator<PocoRole>>()); 48Assert.NotNull(sp.GetRequiredService<IRoleValidator<PocoRole>>()); 110var thingy = services.BuildServiceProvider().GetRequiredService<IRoleValidator<PocoRole>>() as MyUberThingy; 414IEnumerable<IRoleValidator<PocoRole>> roleValidators) : base(store, null, null, null, null)
src\Identity\test\Shared\MockHelpers.cs (2)
27var roles = new List<IRoleValidator<TRole>>(); 57var roles = new List<IRoleValidator<TRole>>();
Microsoft.Extensions.Identity.Core (7)
IdentityBuilder.cs (2)
205/// Adds an <see cref="IRoleValidator{TRole}"/> for the <see cref="RoleType"/>. 216return AddScoped(typeof(IRoleValidator<>).MakeGenericType(RoleType), typeof(TRole));
RoleManager.cs (5)
39IEnumerable<IRoleValidator<TRole>> roleValidators, 52foreach (var v in roleValidators) 77public IList<IRoleValidator<TRole>> RoleValidators { get; } = new List<IRoleValidator<TRole>>(); 400foreach (var v in RoleValidators)