Class ArgumentChecker
The default argument checker.
public class ArgumentChecker : IArgumentChecker
- Inheritance
-
ArgumentChecker
- Implements
- Inherited Members
Remarks
The ArgumentChecker uses the ValidationAttribute to check an argument value.
Constructors
ArgumentChecker(IDataTypeMapper<Argument>, TerminalOptions)
Initialize a new instance.
public ArgumentChecker(IDataTypeMapper<Argument> mapper, TerminalOptions options)
Parameters
mapperIDataTypeMapper<Argument>The argument data-type mapper.
optionsTerminalOptionsThe configuration options.
Methods
CheckArgumentAsync(Argument)
Checks Argument asynchronously.
public Task<ArgumentCheckerResult> CheckArgumentAsync(Argument argument)
Parameters
argumentArgumentThe argument to check.
Returns
- Task<ArgumentCheckerResult>
The ArgumentCheckerResult instance.
StrictTypeCheckingAsync(Argument, DataTypeMapperResult)
Checks the argument value compatibility.
protected Task<OptionCheckerResult> StrictTypeCheckingAsync(Argument argument, DataTypeMapperResult mapperResult)
Parameters
argumentArgumentmapperResultDataTypeMapperResult