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
sessionIDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
sessionis null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
Disables inspector domain notifications.
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandDisableCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
Enables inspector domain notifications.
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandEnableCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Events
Detached
Fired when remote debugging connection is about to be terminated. Contains detach reason.
public event EventHandler<DetachedEventArgs>? Detached
Event Type
TargetCrashed
Fired when debugging target has crashed
public event EventHandler<TargetCrashedEventArgs>? TargetCrashed
Event Type
TargetReloadedAfterCrash
Fired when debugging target has reloaded after crash
public event EventHandler<TargetReloadedAfterCrashEventArgs>? TargetReloadedAfterCrash
Event Type
WorkerScriptLoaded
Fired on worker targets when main worker script and any imported scripts have been evaluated.
public event EventHandler<WorkerScriptLoadedEventArgs>? WorkerScriptLoaded