Show / Hide Table of Contents

Class CommandBase

Inheritance
object
CommandBase
CommandBase<TArgs>
Implements
ICommand
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Command
Assembly: PayrollEngine.Client.Core.dll
Syntax
public abstract class CommandBase : ICommand

Constructors

CommandBase()

Declaration
protected CommandBase()

Properties

BackendCommand

Declaration
public virtual bool BackendCommand { get; }
Property Value
Type Description
bool

Name

Declaration
public virtual string Name { get; }
Property Value
Type Description
string

Methods

DisplayResponseContent(ICommandConsole, HttpResponseMessage)

Declaration
protected static Task DisplayResponseContent(ICommandConsole console, HttpResponseMessage response)
Parameters
Type Name Description
ICommandConsole console
HttpResponseMessage response
Returns
Type Description
Task

DisplayTitle(ICommandConsole, string)

Declaration
protected void DisplayTitle(ICommandConsole console, string title)
Parameters
Type Name Description
ICommandConsole console
string title

ExecuteAsync(CommandContext, ICommandParameters)

Declaration
public Task<int> ExecuteAsync(CommandContext context, ICommandParameters parameters)
Parameters
Type Name Description
CommandContext context
ICommandParameters parameters
Returns
Type Description
Task<int>

GetParameters(CommandLineParser)

Declaration
public abstract ICommandParameters GetParameters(CommandLineParser parser)
Parameters
Type Name Description
CommandLineParser parser
Returns
Type Description
ICommandParameters

OnExecute(CommandContext, ICommandParameters)

Declaration
protected abstract Task<int> OnExecute(CommandContext context, ICommandParameters parameters)
Parameters
Type Name Description
CommandContext context
ICommandParameters parameters
Returns
Type Description
Task<int>

ProcessError(ICommandConsole, Exception)

Declaration
protected void ProcessError(ICommandConsole console, Exception exception)
Parameters
Type Name Description
ICommandConsole console
Exception exception

ShowHelp(ICommandConsole)

Declaration
public abstract void ShowHelp(ICommandConsole console)
Parameters
Type Name Description
ICommandConsole console

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

ICommand

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX