Example #1
0
 public void RegisterCommand(TalkyCommand command)
 {
     lock (_lock)
     {
         if (!_commands.ContainsValue(command) && !_commands.ContainsKey(command.CommandName.ToLower()))
         {
             _commands.Add(command.CommandName.ToLower(), command);
         }
     }
 }
Example #2
0
 public void UnregisterCommand(TalkyCommand command)
 {
     UnregisterCommand(command.CommandName);
 }