Class CommandContext
Command context.
Inherited Members
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 |