Microsoft.Extensions.Options.ValidateOptions<TOptions, TDep>
Implementation of IValidateOptions<T>
Gets the dependency.
Gets the error to return when validation fails.
Gets the options name.
Gets the validation function.
public ValidateOptions(string name, TDep dependency, Func<TOptions, TDep, bool> validation, string failureMessage)
Initializes a new instance of ValidateOptions<T, U>.
Validates a specific named options instance (or all when name is null).