Show / Hide Table of Contents

Class DefaultDataExportService

A default data export service.

Inheritance
System.Object
DefaultDataExportService
Implements
IDataExportService
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.Export
Assembly: Kephas.Data.IO.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultDataExportService : IDataExportService

Constructors

| Improve this Doc View Source

DefaultDataExportService(ICompositionContext, IDataStreamWriteService, IClientQueryExecutor)

Initializes a new instance of the DefaultDataExportService class.

Declaration
public DefaultDataExportService(ICompositionContext compositionContext, IDataStreamWriteService dataStreamWriteService, IClientQueryExecutor clientQueryExecutor)
Parameters
Type Name Description
ICompositionContext compositionContext

The composition context.

IDataStreamWriteService dataStreamWriteService

The data source write service.

IClientQueryExecutor clientQueryExecutor

The client query executor.

Methods

| Improve this Doc View Source

ExportDataAsync(IDataExportContext, CancellationToken)

Exports data asynchronously.

Declaration
public Task<IOperationResult> ExportDataAsync(IDataExportContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IDataExportContext context

The export context.

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

Returns
Type Description
System.Threading.Tasks.Task<IOperationResult>

A data export result.

| Improve this Doc View Source

GetDataAsync(IDataExportContext, CancellationToken)

Gets the data to export asynchronously.

Declaration
protected virtual Task<IEnumerable<object>> GetDataAsync(IDataExportContext context, CancellationToken cancellationToken)
Parameters
Type Name Description
IDataExportContext context

The export context.

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.Object>>

An asynchronous result that yields the data.

Implements

IDataExportService

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