Show / Hide Table of Contents

Class SynchronousCommand

Base class for commands that are run synchronously.

Inheritance
object
CommandBase
SynchronousCommand
GetConfigurationValueCommand
RemoveConfigurationValueCommand
SetConfigurationValueCommand
Implements
ISynchronousCommand
Inherited Members
CommandBase._OutputProvider
CommandBase.ExecutionInfo
CommandBase.Arguments
CommandBase.GetArguments()
CommandBase.Description
CommandBase.WriteLine(string)
CommandBase.WriteLine()
CommandBase.DisplayUsage()
CommandBase.DisplayUsage(StringBuilder)
CommandBase.DisplayValidationSummary(List<IArgument>)
CommandBase.Validate()
CommandBase.SetValuesFromExecutionInfo()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CommandsFramework
Assembly: Benday.CommandsFramework.dll
Syntax
public abstract class SynchronousCommand : CommandBase, ISynchronousCommand

Constructors

| Edit this page View Source

SynchronousCommand(CommandExecutionInfo, ITextOutputProvider)

Constructor

Declaration
public SynchronousCommand(CommandExecutionInfo info, ITextOutputProvider outputProvider)
Parameters
Type Name Description
CommandExecutionInfo info

Command execution information

ITextOutputProvider outputProvider

Output provider instance

Methods

| Edit this page View Source

Execute()

Executes the command

Declaration
public virtual void Execute()
| Edit this page View Source

OnExecute()

Abstract method. This is where the work of the command should be added.

Declaration
protected abstract void OnExecute()
| Edit this page View Source

OnValidationFailure(List<IArgument>)

Template method for handling validation failures. The default implementation displays the usage info for the command and the summary of validation errors.

Declaration
protected virtual void OnValidationFailure(List<IArgument> validationResult)
Parameters
Type Name Description
List<IArgument> validationResult

Implements

ISynchronousCommand
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com