Class ElasticsearchOptionsValidator
Represents a validator for ElasticsearchOptions
Constructors
ElasticsearchOptionsValidator()
Declaration
public ElasticsearchOptionsValidator()
Methods
Validate(String, ElasticsearchOptions)
Validates a specific named options instance (or all when name is null)
Declaration
public ValidateOptionsResult Validate(string name, ElasticsearchOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the options instance being validated |
Si.Srp.Models.Common.Options.ElasticsearchOptions | options | The options instance |
Returns
Type | Description |
---|---|
Microsoft.Extensions.Options.ValidateOptionsResult | The Microsoft.Extensions.Options.ValidateOptionsResult result |
Implements
Microsoft.Extensions.Options.IValidateOptions<>