CallbackCommandInterceptor Class
A
ICommandInterceptor
that triggers a callback when invoked.
public sealed class CallbackCommandInterceptor : ICommandInterceptor
- Namespace
- Spectre
.Console .Testing - Interfaces
Constructors
-
Callback
Command Interceptor (Action <CommandContext, CommandSettings> ) -
Initializes a new instance of the
CallbackCommandInterceptor
class.
Methods
-
void Intercept
(CommandContext, CommandSettings) - Intercepts command information before it's passed to a command.