CallbackCommandInterceptor Class

A ICommandInterceptor that triggers a callback when invoked.
public sealed class CallbackCommandInterceptor : ICommandInterceptor

Constructors

Methods

void Intercept(CommandContext, CommandSettings)
Intercepts command information before it's passed to a command.

Extension Methods

T And<CallbackCommandInterceptor>(Action<CallbackCommandInterceptor>)
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.