Show / Hide Table of Contents

Interface IDataStreamReader

Reader for DataStreams.

Namespace: Kephas.Data.IO.DataStreams
Assembly: Kephas.Data.IO.dll
Syntax
[SingletonAppServiceContract(AllowMultiple = true, MetadataAttributes = new Type[]{typeof(SupportedMediaTypesAttribute)})]
public interface IDataStreamReader

Methods

| Improve this Doc View Source

CanRead(DataStream)

Determines whether this instance can read the specified DataStream.

Declaration
bool CanRead(DataStream dataStream)
Parameters
Type Name Description
DataStream dataStream

The DataStream.

Returns
Type Description
System.Boolean

true if this instance can read the specified DataStream, otherwise false.

| Improve this Doc View Source

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

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX