Class InspectorAdapter
Represents an adapter for the Inspector domain to simplify the command interface.
public class InspectorAdapter
- Inheritance
-
InspectorAdapter
- Inherited Members
Constructors
InspectorAdapter(IDevToolsSession)
Initializes a new instance of the InspectorAdapter class.
public InspectorAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
Disable(DisableCommandSettings, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse> Disable(DisableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse> Enable(EnableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
Detached
detached
public event EventHandler<DetachedEventArgs> Detached
Event Type
TargetCrashed
targetCrashed
public event EventHandler<TargetCrashedEventArgs> TargetCrashed
Event Type
TargetReloadedAfterCrash
targetReloadedAfterCrash
public event EventHandler<TargetReloadedAfterCrashEventArgs> TargetReloadedAfterCrash