Class DataTransferObject
Various extension methods for IDataTransferObject.
Namespace: DotNext
Assembly: DotNext.Net.Cluster.dll
Syntax
public static class DataTransferObject : object
Methods
| Improve this Doc View SourceReadAsTextAsync(IDataTransferObject, Encoding, CancellationToken)
Converts DTO content into string.
Declaration
public static Task<string> ReadAsTextAsync(this IDataTransferObject content, Encoding encoding, CancellationToken token = null)
Parameters
Type | Name | Description |
---|---|---|
IDataTransferObject | content | The content to read. |
Encoding | encoding | The encoding used to decode stored string. |
CancellationToken | token | The token that can be used to cancel asynchronous operation. |
Returns
Type | Description |
---|---|
Task<String> | The content of the object. |