Microsoft.Extensions.Options.AsyncValidateOptions<TOptions, TDep1, TDep2, TDep3>
Implementation of IAsyncValidateOptions<T>.
Gets the first dependency.
Gets the second dependency.
Gets the third dependency.
Gets the error to return when validation fails.
Gets the options name.
Gets the asynchronous validation function.
public AsyncValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, Func<TOptions, TDep1, TDep2, TDep3, CancellationToken, Task<bool>> validation, string failureMessage)
Initializes a new instance of AsyncValidateOptions<T, U, V, W>.
public Task<ValidateOptionsResult> ValidateAsync(string name, TOptions options, CancellationToken cancellationToken = default)