Class SelfServiceRulesSettingsValidator
- Namespace
- SEBT.Portal.Infrastructure.Configuration.Validators
- Assembly
- SEBT.Portal.Infrastructure.dll
Validates SelfServiceRulesSettings at startup. Ensures that enabled actions have at least one issuance type rule defined.
public class SelfServiceRulesSettingsValidator
- Inheritance
-
objectSelfServiceRulesSettingsValidator
Methods
Validate(string?, SelfServiceRulesSettings)
Validates a specified named options instance (or all if name is null).
public ValidateOptionsResult Validate(string? name, SelfServiceRulesSettings options)
Parameters
namestringThe name of the options instance being validated.
optionsSelfServiceRulesSettingsThe options instance.
Returns
- ValidateOptionsResult
The Microsoft.Extensions.Options.ValidateOptionsResult result.