/// <summary>
 /// Adds an intercepter to the command set.
 /// </summary>
 /// <param name="intercepter">The intercepter to add.</param>
 public void AddInterceptor(ICommandIntercepter intercepter)
 {
     _intercepters.Add(intercepter);
     RebuildAllCommandChains();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates an instance of intercepted command.
 /// </summary>
 /// <param name="intercepter">Intercepter reference.</param>
 /// <param name="next">Next intercepter or command in the chain.</param>
 public InterceptedCommand(ICommandIntercepter intercepter, ICommand next)
 {
     _intercepter = intercepter;
     _next        = next;
 }