Class CommandContext
- Namespace
- Framework.Systems.Diagnostics.Console
- Assembly
- Assembly-CSharp.dll
명령 실행 결과 및 로그를 보관하는 컨텍스트. ICommand.ExecuteAsync 내부에서 Log() 를 호출하면 CommandConsole 에 출력된다.
public sealed class CommandContext
- Inheritance
-
objectCommandContext
Constructors
CommandContext(Action<string>)
public CommandContext(Action<string> onLog)
Parameters
onLogAction<string>
Methods
Log(string)
명령 실행 결과를 Console 에 출력한다.
public void Log(string message)
Parameters
messagestring
LogError(string)
오류 메시지 출력. Console 에 [Error] 접두사를 붙인다.
public void LogError(string message)
Parameters
messagestring