Interface IDataStreamReadService
Singleton application service contract for reading data streams.
Namespace: Kephas.Data.IO.DataStreams
Assembly: Kephas.Data.IO.dll
Syntax
[SingletonAppServiceContract]
public interface IDataStreamReadService
Methods
| Improve this Doc View SourceReadAsync(DataStream, IDataIOContext, CancellationToken)
Reads the data source and converts it to an enumeration of entities.
Declaration
Task<object> ReadAsync(DataStream dataStream, IDataIOContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
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<System.Object> | A promise of the deserialized entities. |