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.
Extension Methods
-
T And
< Callback Command Interceptor> (Action < Callback Command Interceptor> ) - Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.