Class CommandResponseTypeMap
Class that maps a DevTools Protocol command's type to the type of object returned by the command.
public class CommandResponseTypeMap
- Inheritance
-
CommandResponseTypeMap
- Inherited Members
Methods
AddCommandResponseType(Type, Type)
Adds mapping to a response type for a specified command type.
public void AddCommandResponseType(Type commandSettingsType, Type commandResponseType)
Parameters
commandSettingsTypeTypeThe type of command to add the mapping for.
commandResponseTypeTypeThe type of response object corresponding to the command.
Exceptions
- ArgumentNullException
If
commandSettingsTypeorcommandResponseTypeare null.
TryGetCommandResponseType(ICommand, out Type?)
Gets the command response type corresponding to the specified command type.
public bool TryGetCommandResponseType(ICommand command, out Type? commandResponseType)
Parameters
commandICommandThe type of command for which to retrieve the response type.
commandResponseTypeTypeThe returned response type.
Returns
TryGetCommandResponseType<T>(out Type?)
Gets the command response type corresponding to the specified command type.
public bool TryGetCommandResponseType<T>(out Type? commandResponseType) where T : ICommand
Parameters
commandResponseTypeTypeThe returned response type.
Returns
Type Parameters
TThe type of command for which to retrieve the response type.