public virtual void HandleLocal(string command, List <string> args, string line) { if (successor != null) { successor.HandleLocal(command, args, line); } else { Console.WriteLine("No such command or this command is not allowed"); } }
public virtual void HandleCommand(bool io, string command, List <string> args, string line) { lock (lockObj) { if (io) { handler.HandleLocal(command, args, line); } else { handler.HandleOut(command, args, line); } } }