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
commandSettingsType
TypeThe type of command to add the mapping for.
commandResponseType
TypeThe type of response object corresponding to the command.
TryGetCommandResponseType(ICommand, out Type)
Gets the command response type corresponding to the specified command type.
public bool TryGetCommandResponseType(ICommand command, out Type commandResponseType)
Parameters
command
ICommandThe type of command for which to retrieve the response type.
commandResponseType
TypeThe 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
commandResponseType
TypeThe returned response type.
Returns
Type Parameters
T
The type of command for which to retrieve the response type.