Class ApplicationMaintenanceCommand.AsynchronousAction
Represents asynchronous command handler.
Inheritance
ApplicationMaintenanceCommand.AsynchronousAction
Inherited Members
Namespace: DotNext.Maintenance.CommandLine
Assembly: DotNext.MaintenanceServices.dll
Syntax
public abstract class ApplicationMaintenanceCommand.AsynchronousAction : AsynchronousCommandLineAction
Methods
| Edit this page View SourceInvokeAsync(IMaintenanceSession, ParseResult, CancellationToken)
Invokes the maintenance command.
Declaration
protected abstract Task<int> InvokeAsync(IMaintenanceSession session, ParseResult result, CancellationToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| IMaintenanceSession | session | The maintenance session. |
| ParseResult | result | The parsing result. |
| CancellationToken | token | The token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<int> | Exit code. |
InvokeAsync(ParseResult, CancellationToken)
Performs an action when the associated symbol is invoked on the command line.
Declaration
public override Task<int> InvokeAsync(ParseResult result, CancellationToken token = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ParseResult | result | |
| CancellationToken | token |
Returns
| Type | Description |
|---|---|
| Task<int> | A value that can be used as the exit code for the process. |