Interface IDataTransferObject.IDecoder<TResult>
Represents DTO transformation.
Namespace: DotNext.IO
Assembly: DotNext.IO.dll
Syntax
public interface IDecoder<TResult>
Type Parameters
| Name | Description |
|---|---|
| TResult | The result type. |
Methods
| Improve this Doc View SourceReadAsync<TReader>(TReader, CancellationToken)
Parses DTO content asynchronously.
Declaration
ValueTask<TResult> ReadAsync<TReader>(TReader reader, CancellationToken token)
where TReader : 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. |