Interface ICommandExecutor
Provides a way to send commands to the remote server
public interface ICommandExecutor : IDisposable
- Inherited Members
Methods
Execute(Command)
Executes a command
Response Execute(Command commandToExecute)
Parameters
commandToExecuteCommandThe command you wish to execute
Returns
- Response
A response from the browser
Exceptions
- ArgumentNullException
If
commandToExecuteis null.
ExecuteAsync(Command)
Executes a command as an asynchronous task.
Task<Response> ExecuteAsync(Command commandToExecute)
Parameters
commandToExecuteCommandThe command you wish to execute
Returns
Exceptions
- ArgumentNullException
If
commandToExecuteis null.
TryAddCommand(string, CommandInfo?)
Attempts to add a command to the repository of commands known to this executor.
bool TryAddCommand(string commandName, CommandInfo? info)
Parameters
commandNamestringThe name of the command to attempt to add.
infoCommandInfoThe CommandInfo describing the command to add.