Exemplo n.º 1
0
 public void SendCommand(string command)
 {
     if (command == ".")
     {
         command = LastCommand;
     }
     else
     {
         LastCommand = command;
     }
     this.serverConnection.SendText(command);
     SentCommands.Enqueue(command);
     if (SentCommands.Count > 30)
     {
         SentCommands.Dequeue();
     }
 }
Exemplo n.º 2
0
 public bool CommandWasSent(Type commandType)
 {
     return(SentCommands.Any(x => x.GetType().IsAssignableFrom(commandType)));
 }