Show / Hide Table of Contents

Class CommandContext

Command context.

Inheritance
object
CommandContext
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Command
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class CommandContext

Constructors

CommandContext(CommandManager, ICommandConsole, ILogger, PayrollHttpClient, DisplayLevel)

Command context.

Declaration
public CommandContext(CommandManager commandManager, ICommandConsole console, ILogger logger = null, PayrollHttpClient httpClient = null, DisplayLevel displayLevel = DisplayLevel.Full)
Parameters
Type Name Description
CommandManager commandManager

Command manager.

ICommandConsole console

Command console.

ILogger logger

Command logger.

PayrollHttpClient httpClient

Http client.

DisplayLevel displayLevel

Command display level.

Properties

CommandManager

Command manager.

Declaration
public CommandManager CommandManager { get; }
Property Value
Type Description
CommandManager

Console

Command console.

Declaration
public ICommandConsole Console { get; }
Property Value
Type Description
ICommandConsole

DisplayLevel

Command info level.

Declaration
public DisplayLevel DisplayLevel { get; }
Property Value
Type Description
DisplayLevel

HttpClient

Http client.

Declaration
public PayrollHttpClient HttpClient { get; }
Property Value
Type Description
PayrollHttpClient

Logger

Command logger.

Declaration
public ILogger Logger { get; }
Property Value
Type Description
ILogger

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