Class DevToolsCommandData
The information for each DevTools command
public class DevToolsCommandData
- Inheritance
-
DevToolsCommandData
- Inherited Members
Constructors
DevToolsCommandData(long, string?, string, JsonNode)
Initializes a new instance of the DevToolsCommandData class.
public DevToolsCommandData(long commandId, string? sessionId, string commandName, JsonNode commandParameters)
Parameters
commandIdlongThe ID of the command execution.
sessionIdstringThe session ID of the current command execution.
commandNamestringThe method name of the DevTools command.
commandParametersJsonNodeThe parameters of the DevTools command.
Exceptions
- ArgumentNullException
If
commandNameis null.
DevToolsCommandData(long, string, JsonNode)
Initializes a new instance of the DevToolsCommandData class.
public DevToolsCommandData(long commandId, string commandName, JsonNode commandParameters)
Parameters
commandIdlongThe ID of the command execution.
commandNamestringThe method name of the DevTools command.
commandParametersJsonNodeThe parameters of the DevTools command.
Exceptions
- ArgumentNullException
If
commandNameis null.
Properties
CommandId
Gets the numeric ID of the command execution.
[JsonPropertyName("id")]
public long CommandId { get; }
Property Value
CommandName
Gets the method name of the command.
[JsonPropertyName("method")]
public string CommandName { get; }
Property Value
CommandParameters
Gets the parameters for the command.
[JsonPropertyName("params")]
public JsonNode CommandParameters { get; }
Property Value
IsError
Gets or sets a value indicating whether the command resulted in an error response.
[JsonIgnore]
public bool IsError { get; set; }
Property Value
Result
Get or sets the result of the command execution.
[JsonIgnore]
public JsonElement Result { get; set; }
Property Value
SessionId
Gets the session ID of the command.
[JsonPropertyName("sessionId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? SessionId { get; }
Property Value
SyncEvent
Gets a ManualResetEventSlim on which execution of the command can be synchronized.
[JsonIgnore]
public ManualResetEventSlim SyncEvent { get; }