Class DefaultDataSetupManager
A default data setup manager service.
Inheritance
System.Object
DefaultDataSetupManager
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.Setup
Assembly: Kephas.Data.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultDataSetupManager : IDataSetupManager
Constructors
| Improve this Doc View SourceDefaultDataSetupManager(ICollection<IExportFactory<IDataInstaller, DataInstallerMetadata>>)
Initializes a new instance of the DefaultDataSetupManager class.
Declaration
public DefaultDataSetupManager(ICollection<IExportFactory<IDataInstaller, DataInstallerMetadata>> dataInstallerFactories)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<IExportFactory<IDataInstaller, DataInstallerMetadata>> | dataInstallerFactories | The data installer factories. |
Methods
| Improve this Doc View SourceGetOrderedDataInstallers(IDataSetupContext)
Gets the ordered data installers.
Declaration
protected virtual List<IDataInstaller> GetOrderedDataInstallers(IDataSetupContext dataSetupContext)
Parameters
Type | Name | Description |
---|---|---|
IDataSetupContext | dataSetupContext | Context for the data setup. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<IDataInstaller> | The ordered data installers. |
GetTargets(IDataSetupContext)
Gets the targets.
Declaration
protected virtual IList<string> GetTargets(IDataSetupContext dataSetupContext)
Parameters
Type | Name | Description |
---|---|---|
IDataSetupContext | dataSetupContext | Context for the data setup. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> | The targets. |
InstallDataAsync(IDataSetupContext, CancellationToken)
Installs data asynchronously.
Declaration
public Task<IOperationResult> InstallDataAsync(IDataSetupContext dataSetupContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IDataSetupContext | dataSetupContext | Context for the data setup. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IOperationResult> | An asynchronous result returning the data setup result. |
UninstallDataAsync(IDataSetupContext, CancellationToken)
Uninstalls data asynchronously.
Declaration
public Task<IOperationResult> UninstallDataAsync(IDataSetupContext dataSetupContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IDataSetupContext | dataSetupContext | Context for the data setup. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IOperationResult> | An asynchronous result returning the data setup result. |