Show / Hide Table of Contents

Class DataTransferObject

Various extension methods for IDataTransferObject.

Inheritance
Object
DataTransferObject
Namespace: DotNext
Assembly: DotNext.Net.Cluster.dll
Syntax
public static class DataTransferObject : object

Methods

| Improve this Doc View Source

ReadAsTextAsync(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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX