/// <summary> /// Maps an argument value using the given mapper instance. /// </summary> /// <param name="mapper">The mapper instance.</param> /// <returns>Configuration.</returns> public ArgumentConfiguration <TOptions, TValue> Using(IMapper <TOptions, TValue> mapper) { Check.NotNull(mapper, nameof(mapper)); _mapperSink.Sink(mapper); return(Configuration); }
// Sinks the provider private CommandConfiguration <TOptions> Sink(IProvider <TOptions> provider) { _componentSink.Sink(provider); return(_configuration); }
/// <summary> /// Uses the given validator instance to check the converted value. /// </summary> private ArgumentConfiguration<TOptions, TValue> Using(IValidator<TValue> validator) { _componentSink.Sink(validator); return _configuration; }