AdvancedLauncher.Management.CommandManager.RegisterCommand C# (CSharp) Method

RegisterCommand() public method

public RegisterCommand ( ICommand command ) : void
command ICommand
return void
        public void RegisterCommand(ICommand command)
        {
            if (command == null) {
                throw new ArgumentException("command argument cannot be null");
            }
            if (Commands.ContainsKey(command.GetName())) {
                LOGGER.ErrorFormat("Can't register command {0} because command with this name already registered!", command.GetName());
                return;
            }
            Commands.TryAdd(command.GetName(), command);
        }