Show / Hide Table of Contents

Interface IGetsResolvedValidationOptions

An object which can get the resolved/final/effective validation options, combining all of the ways in which they might be specified.

Namespace: CSF.Validation
Assembly: CSF.Validation.Abstractions.dll
Syntax
public interface IGetsResolvedValidationOptions
Remarks

As you will notice, the ResolvedValidationOptions class has the same 'shape' as ValidationOptions, except that every property is non-nullable. The resolved options are created by taking the first non-null value from each of:

  1. The specified options
  2. The default options configured at DI registration
  3. Hard-coded default options (if nothing else is specified)

Methods

| Improve this Doc View Source

GetResolvedValidationOptions(ValidationOptions)

Gets the resolved validation options.

Declaration
ResolvedValidationOptions GetResolvedValidationOptions(ValidationOptions specifiedOptions)
Parameters
Type Name Description
ValidationOptions specifiedOptions

Options which have been specified by a developer via the API; may be null.

Returns
Type Description
ResolvedValidationOptions

The resolved (or effective) validation options.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX