Class DataStreamReadServiceExtensions
Extension methods for IDataStreamReadService.
Inheritance
System.Object
DataStreamReadServiceExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.IO.DataStreams
Assembly: Kephas.Data.IO.dll
Syntax
public static class DataStreamReadServiceExtensions
Methods
| Improve this Doc View SourceReadAsync<TRootObject>(IDataStreamReadService, DataStream, IDataIOContext, CancellationToken)
Reads the data source and converts it to an enumeration of entities.
Declaration
public static Task<TRootObject> ReadAsync<TRootObject>(this IDataStreamReadService dataStreamReadService, DataStream dataStream, IDataIOContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IDataStreamReadService | dataStreamReadService | The IDataStreamReadService to act on. |
DataStream | dataStream | The DataStream containing the entities. |
IDataIOContext | context | The data I/O context (optional). |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TRootObject> | A promise of the deserialized entities. |
Type Parameters
Name | Description |
---|---|
TRootObject | Type of the root object. |