Show / Hide Table of Contents

Class ExtendedRoleValidator<TRole>

Provides the default validation of roles in a system.

Inheritance
Object
Microsoft.AspNetCore.Identity.RoleValidator<TRole>
ExtendedRoleValidator<TRole>
MultitenantRoleValidator<TRole>
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public class ExtendedRoleValidator<TRole> : RoleValidator<TRole>, IRoleValidator<TRole> where TRole : class, IRole
Type Parameters
TRole

Constructors

ExtendedRoleValidator(ExtendedIdentityErrorDescriber)

Declaration
public ExtendedRoleValidator(ExtendedIdentityErrorDescriber errors = null)
Parameters
ExtendedIdentityErrorDescriber errors

The ExtendedIdentityErrorDescriber used to provider error messages.

Methods

ValidateAsync(RoleManager<TRole>, TRole)

Declaration
public override async Task<IdentityResult> ValidateAsync(RoleManager<TRole> manager, TRole role)
Parameters
Microsoft.AspNetCore.Identity.RoleManager<TRole> manager

TRole role

Returns
System.Threading.Tasks.Task<IdentityResult>

Overrides
Microsoft.AspNetCore.Identity.RoleValidator<TRole>.ValidateAsync(Microsoft.AspNetCore.Identity.RoleManager<TRole>, TRole)

ValidateExternalRole(TRole, ICollection<IdentityError>)

Validates external roles.

Declaration
protected void ValidateExternalRole(TRole role, ICollection<IdentityError> errors)
Parameters
TRole role

The role

System.Collections.Generic.ICollection<Microsoft.AspNetCore.Identity.IdentityError> errors

A collection of errors.

Back to top Generated by DocFX