Show / Hide Table of Contents

Class OrganisationValidator<TOrganisation>

Provides the default validation of organisations.

Inheritance
Object
OrganisationValidator<TOrganisation>
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 OrganisationValidator<TOrganisation> : IOrganisationValidator<TOrganisation> where TOrganisation : class, IOrganisation
Type Parameters
TOrganisation

Constructors

OrganisationValidator(IOptions<ExtendedIdentityOptions>, ExtendedIdentityErrorDescriber)

Creates a new instance of OrganisationValidator<TOrganisation>.

Declaration
public OrganisationValidator(IOptions<ExtendedIdentityOptions> optionsAccessor, ExtendedIdentityErrorDescriber errors = null)
Parameters
Microsoft.Extensions.Options.IOptions<ExtendedIdentityOptions> optionsAccessor

The accessor used to access the ExtendedIdentityOptions.

ExtendedIdentityErrorDescriber errors

The ExtendedIdentityErrorDescriber used to provider error messages.

Methods

ValidateAsync(OrganisationManager<TOrganisation>, TOrganisation)

Validates an organisation as an asynchronous operation.

Declaration
public async 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.

Implements
IOrganisationValidator<TOrganisation>.ValidateAsync(OrganisationManager<TOrganisation>, TOrganisation)
Back to top Generated by DocFX