Interface IPersonValidator<TPerson>
Provides an abstraction for person validation.
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public interface IPersonValidator<TPerson>
where TPerson : class, IPerson
Type Parameters
TPerson
The type encapsulating a person. |
Methods
ValidateAsync(PersonManager<TPerson>, TPerson)
Validates the specified person
as an asynchronous operation.
Declaration
Task<IdentityResult> ValidateAsync(PersonManager<TPerson> manager, TPerson person)
Parameters
PersonManager<TPerson>
manager
The PersonManager<TPerson> that can be used to retrieve person properties. |
TPerson
person
The person to validate. |
Returns
System.Threading.Tasks.Task<IdentityResult>
The System.Threading.Tasks.Task that represents the asynchronous operation, containing the IdentityResult of the validation operation. |