public void AddCustomHandlers (ICommandTargetHandler handlerChain, ICommandArrayTargetHandler arrayHandlerChain) { this.customHandlerChain = handlerChain; this.customArrayHandlerChain = arrayHandlerChain; }
ICommandArrayTargetHandler ChainHandler (ICommandArrayTargetHandler chain, object attr) { ICommandArrayTargetHandler h = attr as ICommandArrayTargetHandler; if (h == null) return chain; h.Next = chain ?? DefaultCommandHandler.Instance; return h; }