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
ExecuteAsync(Command)
Executes a command as an asynchronous task.
Task<Response> ExecuteAsync(Command commandToExecute)
Parameters
commandToExecute
CommandThe command you wish to execute
Returns
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 commnd to add.