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
mapper
IDataTypeMapper<Argument>The argument data-type mapper.
options
TerminalOptionsThe configuration options.
Methods
CheckArgumentAsync(Argument)
Checks Argument asynchronously.
public Task<ArgumentCheckerResult> CheckArgumentAsync(Argument argument)
Parameters
argument
ArgumentThe 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
argument
ArgumentmapperResult
DataTypeMapperResult