Class DefaultDataImportService
A default data import service.
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.Import
Assembly: Kephas.Data.IO.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultDataImportService : Loggable, ILoggable, IDataImportService
Constructors
| Improve this Doc View SourceDefaultDataImportService(IDataStreamReadService, IDataConversionService, IProjectedTypeResolver, ICollection<IExportFactory<IDataImportBehavior, AppServiceMetadata>>)
Initializes a new instance of the DefaultDataImportService class.
Declaration
public DefaultDataImportService(IDataStreamReadService dataStreamReadService, IDataConversionService conversionService, IProjectedTypeResolver projectedTypeResolver, ICollection<IExportFactory<IDataImportBehavior, AppServiceMetadata>> behaviorFactories = null)
Parameters
Type | Name | Description |
---|---|---|
IDataStreamReadService | dataStreamReadService | The data source read service. |
IDataConversionService | conversionService | The conversion service. |
IProjectedTypeResolver | projectedTypeResolver | The projected type resolver. |
System.Collections.Generic.ICollection<IExportFactory<IDataImportBehavior, AppServiceMetadata>> | behaviorFactories | The behavior factories (optional). |
Properties
| Improve this Doc View SourceConversionService
Gets the conversion service.
Declaration
public IDataConversionService ConversionService { get; }
Property Value
Type | Description |
---|---|
IDataConversionService | The conversion service. |
Methods
| Improve this Doc View SourceImportDataAsync(DataStream, IDataImportContext, CancellationToken)
Imports the data asynchronously.
Declaration
public 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. |