Class DefaultDataExportService
A default data export service.
Inheritance
System.Object
    DefaultDataExportService
  Implements
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 : IDataExportServiceConstructors
| Improve this Doc View SourceDefaultDataExportService(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 SourceExportDataAsync(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. | 
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. |