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
commandToExecute
CommandThe command you wish to execute
Returns
- Response
A response from the browser
Exceptions
- ArgumentNullException
If
commandToExecute
is null.
ExecuteAsync(Command)
Executes a command as an asynchronous task.
Task<Response> ExecuteAsync(Command commandToExecute)
Parameters
commandToExecute
CommandThe command you wish to execute
Returns
Exceptions
- ArgumentNullException
If
commandToExecute
is 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
commandName
stringThe name of the command to attempt to add.
info
CommandInfoThe CommandInfo describing the command to add.