Class ApplicationMaintenanceCommand.SynchronousAction
Represents synchronous command handler.
Inheritance
ApplicationMaintenanceCommand.SynchronousAction
  Inherited Members
Namespace: DotNext.Maintenance.CommandLine
Assembly: DotNext.MaintenanceServices.dll
Syntax
public abstract class ApplicationMaintenanceCommand.SynchronousAction : SynchronousCommandLineAction
  Methods
| Edit this page View SourceInvoke(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.  | 
      
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.  |