Show / Hide Table of Contents

Class ApplicationMaintenanceCommand.AsynchronousAction

Represents asynchronous command handler.

Inheritance
object
CommandLineAction
AsynchronousCommandLineAction
ApplicationMaintenanceCommand.AsynchronousAction
Inherited Members
CommandLineAction.Terminating
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotNext.Maintenance.CommandLine
Assembly: DotNext.MaintenanceServices.dll
Syntax
public abstract class ApplicationMaintenanceCommand.AsynchronousAction : AsynchronousCommandLineAction

Methods

| Edit this page View Source

InvokeAsync(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.

| Edit this page View Source

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.

Overrides
AsynchronousCommandLineAction.InvokeAsync(ParseResult, CancellationToken)

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.GetUserData<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾