public OptionsParser(IValueParserFactory valueParserFactory) { _optionsMetadata = new OptionsMetadata(typeof(TOptions)); _optionsFactory = new OptionsFactory <TOptions>(_optionsMetadata); _valueParserSelector = new ValueParserSelector(valueParserFactory); _optionsMetadataValidator = new OptionsMetadataValidator <TOptions>(_optionsMetadata, _optionsFactory, _valueParserSelector); _optionsValidator = new OptionsValidator(); }
public OptionsMetadataValidator( OptionsMetadata optionsMetadata, IOptionsFactory <TOptions> optionsFactory, ValueParserSelector valueParserSelector) { _optionsMetadata = optionsMetadata; _optionsFactory = optionsFactory; _valueParserSelector = valueParserSelector; }