Interface IDataSetupManager
Application service contract for setting up and uninstalling data.
Namespace: Kephas.Data.Setup
Assembly: Kephas.Data.dll
Syntax
[SingletonAppServiceContract]
public interface IDataSetupManager
Remarks
The typical implementation aggregates multiple IDataInstaller services and calls them in their priority order.
Methods
| Improve this Doc View SourceInstallDataAsync(IDataSetupContext, CancellationToken)
Installs data asynchronously.
Declaration
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
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. |