Registers a command to be executed with this driver instance. The unique name of the command to register. The object describing the command. if the registered command is internal to the driver; otherwise .</
(string commandName, [NotNullWhen(true)] CommandInfo? commandInfo, bool isInternalCommand)
| 500 | /// <param name="isInternalCommand"><see langword="true"/> if the registered command is internal to the driver; otherwise <see langword="false"/>.</param> |
| 501 | /// <returns><see langword="true"/> if the command was registered; otherwise, <see langword="false"/>.</returns> |
| 502 | internal bool RegisterDriverCommand(string commandName, [NotNullWhen(true)] CommandInfo? commandInfo, bool isInternalCommand) |
| 503 | { |
| 504 | if (this.CommandExecutor.TryAddCommand(commandName, commandInfo)) |
| 505 | { |
| 506 | if (isInternalCommand) |
| 507 | { |
| 508 | this.registeredCommands.Add(commandName); |
| 509 | } |
| 510 | |
| 511 | return true; |
| 512 | } |
| 513 | |
| 514 | return false; |
| 515 | } |
| 516 | |
| 517 | /// <summary> |
| 518 | /// Find the element in the response |
no test coverage detected