Interface IDataConverter
Service for converting a source object to a target object.
Namespace: Kephas.Data.Conversion
Assembly: Kephas.Data.dll
Syntax
public interface IDataConverter
Methods
| Improve this Doc View SourceConvertAsync(Object, Object, IDataConversionContext, CancellationToken)
Converts the source object to the target object asynchronously.
Declaration
Task<IDataConversionResult> ConvertAsync(object source, object target, IDataConversionContext conversionContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Object | source | The source object. |
System.Object | target | The target object. |
IDataConversionContext | conversionContext | The conversion context. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IDataConversionResult> | A data conversion result. |