Class UpsServiceOptionsValidator
- Namespace
- Visus.AddressValidation.Integration.Ups.Configuration
- Assembly
- Visus.AddressValidation.Integration.Ups.dll
Validates UpsServiceOptions using the data annotation attributes declared on its properties. This class is source-generated by the OptionsValidatorAttribute.
[OptionsValidator]
public sealed class UpsServiceOptionsValidator : IValidateOptions<UpsServiceOptions>
- Inheritance
-
UpsServiceOptionsValidator
- Implements
- Inherited Members
Methods
Validate(string?, UpsServiceOptions)
Validates a specific named options instance (or all when name is null).
public ValidateOptionsResult Validate(string? name, UpsServiceOptions options)
Parameters
namestringThe name of the options instance being validated.
optionsUpsServiceOptionsThe options instance.
Returns
- ValidateOptionsResult
Validation result.