Class DataTypeMapper<TValue>
The default option data type mapper.
public sealed class DataTypeMapper<TValue> : IDataTypeMapper<TValue> where TValue : IValue
Type Parameters
TValue
- Inheritance
-
DataTypeMapper<TValue>
- Implements
-
IDataTypeMapper<TValue>
- Inherited Members
Constructors
DataTypeMapper(TerminalOptions, ILogger<DataTypeMapper<TValue>>)
Initialize a new instance.
public DataTypeMapper(TerminalOptions options, ILogger<DataTypeMapper<TValue>> logger)
Parameters
options
TerminalOptionsThe configuration options.
logger
ILogger<DataTypeMapper<TValue>>The logger.
Methods
MapToTypeAsync(DataTypeMapperContext<TValue>)
Maps a data type to Type asynchronously.
public Task<DataTypeMapperResult> MapToTypeAsync(DataTypeMapperContext<TValue> context)
Parameters
context
DataTypeMapperContext<TValue>The map context.
Returns
- Task<DataTypeMapperResult>
The