Show / Hide Table of Contents

Class ApplicationMaintenanceCommand.SynchronousAction

Represents synchronous command handler.

Inheritance
object
CommandLineAction
SynchronousCommandLineAction
ApplicationMaintenanceCommand.SynchronousAction
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.SynchronousAction : SynchronousCommandLineAction

Methods

| Edit this page View Source

Invoke(IMaintenanceSession, ParseResult)

Invokes the maintenance command.

Declaration
protected abstract int Invoke(IMaintenanceSession session, ParseResult result)
Parameters
Type Name Description
IMaintenanceSession session

The maintenance session.

ParseResult result

The parsing result.

Returns
Type Description
int

Exit code.

| Edit this page View Source

Invoke(ParseResult)

Performs an action when the associated symbol is invoked on the command line.

Declaration
public override sealed int Invoke(ParseResult result)
Parameters
Type Name Description
ParseResult result
Returns
Type Description
int

A value that can be used as the exit code for the process.

Overrides
SynchronousCommandLineAction.Invoke(ParseResult)

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
☀
☾