InterceptedCommand constructor

InterceptedCommand(
  1. ICommandInterceptor interceptor,
  2. ICommand next
)

Creates a new InterceptedCommand, which serves as a link in an execution chain. Contains information about the interceptor that is being used and the next command in the chain.

  • interceptor the interceptor that is intercepting the command.
  • next (link to) the next command in the command's execution chain.

Implementation

InterceptedCommand(ICommandInterceptor interceptor, ICommand next)
    : _interceptor = interceptor,
      _next = next;