Interface IDataInstaller
Application service contract for handling initial data.
Namespace: Kephas.Data.Setup
Assembly: Kephas.Data.dll
Syntax
[SingletonAppServiceContract(AllowMultiple = true, MetadataAttributes = new Type[]{typeof(TargetPackageAttribute)})]
public interface IDataInstaller
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. |