ICommandInterceptor

Represents a command settings interceptor that will intercept command settings before it's passed to a command.

Represents a command settings interceptor that will intercept command settings before it's passed to a command.

Methods

public void Intercept(CommandContext context, CommandSettings settings)

Intercepts command information before it's passed to a command.

Parameters:

context (CommandContext)
The intercepted CommandContext.
settings (CommandSettings)
The intercepted CommandSettings.
public void InterceptResult(CommandContext context, CommandSettings settings, ref int result)

Intercepts a command result before it's passed as the result.

Parameters:

context (CommandContext)
The intercepted CommandContext.
settings (CommandSettings)
The intercepted CommandSettings.
result (ref int)
The result from the command execution.