Show / Hide Table of Contents

Class CommandBase<TArgs>

Inheritance
object
CommandBase
CommandBase<TArgs>
Implements
ICommand
Inherited Members
CommandBase.GetParameters(CommandLineParser)
CommandBase.ExecuteAsync(CommandContext, ICommandParameters)
CommandBase.ShowHelp(ICommandConsole)
CommandBase.DisplayTitle(ICommandConsole, string)
CommandBase.ProcessError(ICommandConsole, Exception)
CommandBase.DisplayResponseContent(ICommandConsole, HttpResponseMessage)
CommandBase.ToString()
CommandBase.Name
CommandBase.BackendCommand
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<TArgs> : CommandBase, ICommand where TArgs : ICommandParameters, new()
Type Parameters
Name Description
TArgs

Constructors

CommandBase()

Declaration
protected CommandBase()

Methods

Execute(CommandContext, TArgs)

Execute command.

Declaration
protected abstract Task<int> Execute(CommandContext context, TArgs parameters)
Parameters
Type Name Description
CommandContext context

Command context.

TArgs parameters

Command parameters.

Returns
Type Description
Task<int>

Error code, zero on valid command execution.

OnExecute(CommandContext, ICommandParameters)

Execute command.

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

Command context.

ICommandParameters parameters

Command parameters.

Returns
Type Description
Task<int>

Error code, zero on valid command execution.

Overrides
CommandBase.OnExecute(CommandContext, ICommandParameters)

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