CallbackCommandInterceptor(Action<CommandContext, CommandSettings>) Constructor
Initializes a new instance of the
CallbackCommandInterceptor
class.
public CallbackCommandInterceptor(Action<CommandContext, CommandSettings> callback)
- Namespace
- Spectre
.Console .Testing - Containing Type
- Callback
Command Interceptor
Parameters
-
Action
<CommandContext, CommandSettings> callback - The callback to call when the interceptor is invoked.