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