Interface IDataTransferObject.ITransformation<TResult>
Represents DTO transformation.
Namespace: DotNext.IO
Assembly: DotNext.IO.dll
Syntax
public interface IDataTransferObject.ITransformation<TResult>
Type Parameters
Name | Description |
---|---|
TResult | The result type. |
Methods
| Edit this page View SourceTransformAsync<TReader>(TReader, CancellationToken)
Parses DTO content asynchronously.
Declaration
ValueTask<TResult> TransformAsync<TReader>(TReader reader, CancellationToken token) where TReader : notnull, IAsyncBinaryReader
Parameters
Type | Name | Description |
---|---|---|
TReader | reader | The reader of DTO content. |
CancellationToken | token | The token that can be used to cancel the operation. |
Returns
Type | Description |
---|---|
ValueTask<TResult> | The converted DTO content. |
Type Parameters
Name | Description |
---|---|
TReader | The type of binary reader. |