Class CommandLineFluentValidationServicesBundle
- Namespace
- Ploch.CommandLine.Spectre.FluentValidation
- Assembly
- Ploch.CommandLine.Spectre.FluentValidation.dll
A services bundle that configures FluentValidation for command line settings validation. Registers validators from specified assemblies and configures the FluentCommandSettingsValidator.
public class CommandLineFluentValidationServicesBundle : ServicesBundle, IServicesBundle, IOptionalConfigurationProvider, IConfigurationConsumer
- Inheritance
-
ServicesBundleCommandLineFluentValidationServicesBundle
- Implements
-
IServicesBundleIOptionalConfigurationProviderIConfigurationConsumer
- Inherited Members
-
ServicesBundle.ConfigurationServicesBundle.ServicesServicesBundle.Dependencies
Constructors
- CommandLineFluentValidationServicesBundle(params IEnumerable<Assembly>)
A services bundle that configures FluentValidation for command line settings validation. Registers validators from specified assemblies and configures the FluentCommandSettingsValidator.
Methods
- Create(Action<AssemblyListBuilder>)
Creates a new instance of CommandLineFluentValidationServicesBundle using an assembly list builder.
- DoConfigure()
Configures the service collection with FluentValidation validators and command settings validator.