Interface IOrganisationValidator<TOrganisation>
Provides an abstraction for a validating an organisation.
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public interface IOrganisationValidator<TOrganisation>
where TOrganisation : class, IOrganisation
Type Parameters
TOrganisation
|
Methods
ValidateAsync(OrganisationManager<TOrganisation>, TOrganisation)
Validates an organisation as an asynchronous operation.
Declaration
Task<IdentityResult> ValidateAsync(OrganisationManager<TOrganisation> manager, TOrganisation organisation)
Parameters
OrganisationManager<TOrganisation>
manager
The OrganisationManager<TOrganisation> managing the organisation store. |
TOrganisation
organisation
The organisation to validate. |
Returns
System.Threading.Tasks.Task<IdentityResult>
A System.Threading.Tasks.Task<TResult> that represents the IdentityResult of the asynchronous validation. |