Interface IDataImportService
Interface for data import service.
Namespace: Kephas.Data.IO.Import
Assembly: Kephas.Data.IO.dll
Syntax
[SingletonAppServiceContract]
public interface IDataImportService
Methods
| Improve this Doc View SourceImportDataAsync(DataStream, IDataImportContext, CancellationToken)
Imports the data asynchronously.
Declaration
Task<IOperationResult> ImportDataAsync(DataStream dataSource, IDataImportContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
DataStream | dataSource | The data source. |
IDataImportContext | context | The context. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IOperationResult> | A data import result. |