Class SubCommandBase
Inheritance
SubCommandBase
Inherited Members
Namespace: AnalysisPrograms.Production.Arguments
Assembly: AnalysisPrograms.dll
Syntax
public abstract class SubCommandBase
Properties
| Improve this Doc View SourceParent
Gets or sets the Parent command. This is set by CommandLineUtils automatically.
Declaration
public MainArgs Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| Main |
Methods
| Improve this Doc View SourceExecute(CommandLineApplication)
Declaration
public abstract Task<int> Execute(CommandLineApplication app)
Parameters
| Type | Name | Description |
|---|---|---|
| Mc |
app |
Returns
| Improve this Doc View SourceOk()
Declaration
protected Task<int> Ok()
Returns
| Improve this Doc View SourceOnExecuteAsync(CommandLineApplication)
This method is called when we run the command. This method is automatically invoked by CommandLineUtils through reflection.
Declaration
public Task<int> OnExecuteAsync(CommandLineApplication app)
Parameters
| Type | Name | Description |
|---|---|---|
| Mc |
app |
Returns
| Improve this Doc View SourceOnValidate(ValidationContext, CommandLineContext)
This method is invoked when the Model is validated as a whole. It allows for complex validation scenarios. This method is automatically invoked by CommandLineUtils through reflection.
Declaration
protected virtual ValidationResult OnValidate(ValidationContext context, CommandLineContext appContext)
Parameters
| Type | Name | Description |
|---|---|---|
| Validation |
context | The current validation context. |
| Mc |
appContext | The current command line application. |
Returns
| Type | Description |
|---|---|
| Validation |
A validation result. |