Microsoft.Extensions.Options.ValidateOptions<TOptions, TDep1, TDep2, TDep3, TDep4>
Implementation of IValidateOptions<T>
Gets the first dependency.
Gets the second dependency.
Gets the third dependency.
Gets the fourth dependency.
Gets the error to return when validation fails.
Gets the options name.
Gets the validation function.
public ValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, Func<TOptions, TDep1, TDep2, TDep3, TDep4, bool> validation, string failureMessage)
Initializes a new instance of ValidateOptions<T, U, V, W, X>.
Validates a specific named options instance (or all when name is null).