Table of Contents

Class DataTypeMapper<TValue>

Namespace
OneImlx.Terminal.Commands.Mappers
Assembly
OneImlx.Terminal.dll

The default option data type mapper.

public sealed class DataTypeMapper<TValue> : IDataTypeMapper<TValue> where TValue : IValue

Type Parameters

TValue
Inheritance
DataTypeMapper<TValue>
Implements
Inherited Members

Constructors

DataTypeMapper(TerminalOptions, ILogger<DataTypeMapper<TValue>>)

Initialize a new instance.

public DataTypeMapper(TerminalOptions options, ILogger<DataTypeMapper<TValue>> logger)

Parameters

options TerminalOptions

The 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