Show / Hide Table of Contents

Class AssemblyEmbeddedResourcesDataInstallerBase

An initial data handler base using the assembly embedded resources.

Inheritance
System.Object
Loggable
DataIOInstallerBase
AssemblyEmbeddedResourcesDataInstallerBase
Implements
ILoggable
IDataInstaller
Inherited Members
DataIOInstallerBase.DataImportService
DataIOInstallerBase.DataSpaceFactory
DataIOInstallerBase.InstallDataAsync(IDataSetupContext, CancellationToken)
DataIOInstallerBase.UninstallDataAsync(IDataSetupContext, CancellationToken)
DataIOInstallerBase.ImportDataAsync(IDataSetupContext, IEnumerable<String>, CancellationToken)
DataIOInstallerBase.ImportDataFileAsync(IDataSetupContext, String, CancellationToken)
DataIOInstallerBase.CreateDataImportContext(IDataSetupContext, IDataSpace)
Loggable.Logger
Loggable.GetLogger()
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.Setup
Assembly: Kephas.Data.IO.dll
Syntax
public abstract class AssemblyEmbeddedResourcesDataInstallerBase : DataIOInstallerBase, ILoggable, IDataInstaller

Constructors

| Improve this Doc View Source

AssemblyEmbeddedResourcesDataInstallerBase(IDataImportService, IExportFactory<IDataSpace>)

Initializes a new instance of the AssemblyEmbeddedResourcesDataInstallerBase class.

Declaration
protected AssemblyEmbeddedResourcesDataInstallerBase(IDataImportService dataImportService, IExportFactory<IDataSpace> dataSpaceFactory)
Parameters
Type Name Description
IDataImportService dataImportService

The data import service.

IExportFactory<IDataSpace> dataSpaceFactory

The data space factory.

Remarks

The assembly containing the resources is the assembly where the data installer class is declared.

| Improve this Doc View Source

AssemblyEmbeddedResourcesDataInstallerBase(IDataImportService, IExportFactory<IDataSpace>, Assembly)

Initializes a new instance of the AssemblyEmbeddedResourcesDataInstallerBase class.

Declaration
protected AssemblyEmbeddedResourcesDataInstallerBase(IDataImportService dataImportService, IExportFactory<IDataSpace> dataSpaceFactory, Assembly assembly)
Parameters
Type Name Description
IDataImportService dataImportService

The data import service.

IExportFactory<IDataSpace> dataSpaceFactory

The data space factory.

System.Reflection.Assembly assembly

The assembly containing the resources.

Properties

| Improve this Doc View Source

ResourcesAssembly

Gets or sets the assembly holding the resources.

Declaration
protected Assembly ResourcesAssembly { get; set; }
Property Value
Type Description
System.Reflection.Assembly

Methods

| Improve this Doc View Source

CreateDataSource(String)

Creates an output data source.

Declaration
protected override DataStream CreateDataSource(string dataFilePath)
Parameters
Type Name Description
System.String dataFilePath

The data file path.

Returns
Type Description
DataStream

The new data source.

Overrides
DataIOInstallerBase.CreateDataSource(String)
| Improve this Doc View Source

GetDataFilePaths(String, IEnumerable<String>)

Gets the data files to be imported for the provided operation namespace.

Declaration
protected virtual IEnumerable<string> GetDataFilePaths(string operationNamespace, IEnumerable<string> fileNames)
Parameters
Type Name Description
System.String operationNamespace

The operation namespace.

System.Collections.Generic.IEnumerable<System.String> fileNames

List of names of the files.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

An enumeration of file paths.

| Improve this Doc View Source

GetDataFileResourceNamespace()

Gets the data file resource namespace.

Declaration
protected virtual string GetDataFileResourceNamespace()
Returns
Type Description
System.String

The data file resource namespace.

| Improve this Doc View Source

GetInstallDataFileNames()

Gets the file names of the data to be installed.

Declaration
protected virtual IEnumerable<string> GetInstallDataFileNames()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

An enumeration of file names.

Remarks

When overridden in a derived class, the file names should not contain the resource namespace, because it will be prepended by the GetInstallDataFilePaths(). Also, the file names should be provided in the right order for the import.

| Improve this Doc View Source

GetInstallDataFilePaths()

Gets the files for the data to be installed.

Declaration
protected override IEnumerable<string> GetInstallDataFilePaths()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

An enumeration of file paths.

Overrides
DataIOInstallerBase.GetInstallDataFilePaths()
| Improve this Doc View Source

GetUninstallDataFileNames()

Gets the data file names of the data to be uninstalled.

Declaration
protected virtual IEnumerable<string> GetUninstallDataFileNames()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

An enumeration of file names.

Remarks

When overridden in a derived class, the file names should not contain the resource namespace, because it will be prepended by the GetInstallDataFilePaths(). Also, the file names should be provided in the right order for the import.

| Improve this Doc View Source

GetUninstallDataFilePaths()

Gets the files for the data to be uninstalled.

Declaration
protected override IEnumerable<string> GetUninstallDataFilePaths()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

An enumeration of file paths.

Overrides
DataIOInstallerBase.GetUninstallDataFilePaths()

Implements

ILoggable
IDataInstaller

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