Example #1
0
 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");
     }
 }
Example #2
0
 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);
         }
     }
 }