Class CommandInfo
Provides the execution information for a DriverCommand.
public class CommandInfo
- Inheritance
-
CommandInfo
- Inherited Members
Constructors
CommandInfo(string, string)
Initializes a new instance of the CommandInfo class
public CommandInfo(string method, string resourcePath)
Parameters
method
stringMethod of the Command
resourcePath
stringRelative URL path to the resource used to execute the command
Fields
DeleteCommand
DELETE verb for the command info
public const string DeleteCommand = "DELETE"
Field Value
GetCommand
GET verb for the command info
public const string GetCommand = "GET"
Field Value
PostCommand
POST verb for the command info
public const string PostCommand = "POST"
Field Value
Properties
Method
Gets the HTTP method associated with the command.
public string Method { get; }
Property Value
ResourcePath
Gets the URL representing the path to the resource.
public string ResourcePath { get; }
Property Value
Methods
CreateWebRequest(Uri, Command)
Creates a web request for your command
public HttpWebRequest CreateWebRequest(Uri baseUri, Command commandToExecute)
Parameters
baseUri
UriUri that will have the command run against
commandToExecute
CommandCommand to execute
Returns
- HttpWebRequest
A web request of what has been run