Class RuntimeAdapter
Represents an adapter for the Runtime domain to simplify the command interface.
public class RuntimeAdapter- Inheritance
- 
      
      RuntimeAdapter
- Inherited Members
Constructors
RuntimeAdapter(IDevToolsSession)
Initializes a new instance of the RuntimeAdapter class.
public RuntimeAdapter(IDevToolsSession session)Parameters
- sessionIDevToolsSession
- The 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
AddBinding(AddBindingCommandSettings, CancellationToken, int?, bool)
addBinding
public Task<AddBindingCommandResponse?> AddBinding(AddBindingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandAddBindingCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
AwaitPromise(AwaitPromiseCommandSettings, CancellationToken, int?, bool)
awaitPromise
public Task<AwaitPromiseCommandResponse> AwaitPromise(AwaitPromiseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandAwaitPromiseCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
CallFunctionOn(CallFunctionOnCommandSettings, CancellationToken, int?, bool)
callFunctionOn
public Task<CallFunctionOnCommandResponse> CallFunctionOn(CallFunctionOnCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandCallFunctionOnCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
CompileScript(CompileScriptCommandSettings, CancellationToken, int?, bool)
compileScript
public Task<CompileScriptCommandResponse> CompileScript(CompileScriptCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandCompileScriptCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDisableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
DiscardConsoleEntries(DiscardConsoleEntriesCommandSettings?, CancellationToken, int?, bool)
discardConsoleEntries
public Task<DiscardConsoleEntriesCommandResponse?> DiscardConsoleEntries(DiscardConsoleEntriesCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDiscardConsoleEntriesCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEnableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Evaluate(EvaluateCommandSettings, CancellationToken, int?, bool)
evaluate
public Task<EvaluateCommandResponse> Evaluate(EvaluateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEvaluateCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetExceptionDetails(GetExceptionDetailsCommandSettings, CancellationToken, int?, bool)
getExceptionDetails
public Task<GetExceptionDetailsCommandResponse> GetExceptionDetails(GetExceptionDetailsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetExceptionDetailsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetHeapUsage(GetHeapUsageCommandSettings?, CancellationToken, int?, bool)
getHeapUsage
public Task<GetHeapUsageCommandResponse> GetHeapUsage(GetHeapUsageCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetHeapUsageCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetIsolateId(GetIsolateIdCommandSettings?, CancellationToken, int?, bool)
getIsolateId
public Task<GetIsolateIdCommandResponse> GetIsolateId(GetIsolateIdCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetIsolateIdCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetProperties(GetPropertiesCommandSettings, CancellationToken, int?, bool)
getProperties
public Task<GetPropertiesCommandResponse> GetProperties(GetPropertiesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetPropertiesCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GlobalLexicalScopeNames(GlobalLexicalScopeNamesCommandSettings, CancellationToken, int?, bool)
globalLexicalScopeNames
public Task<GlobalLexicalScopeNamesCommandResponse> GlobalLexicalScopeNames(GlobalLexicalScopeNamesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGlobalLexicalScopeNamesCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
QueryObjects(QueryObjectsCommandSettings, CancellationToken, int?, bool)
queryObjects
public Task<QueryObjectsCommandResponse> QueryObjects(QueryObjectsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandQueryObjectsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
ReleaseObject(ReleaseObjectCommandSettings, CancellationToken, int?, bool)
releaseObject
public Task<ReleaseObjectCommandResponse?> ReleaseObject(ReleaseObjectCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandReleaseObjectCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
ReleaseObjectGroup(ReleaseObjectGroupCommandSettings, CancellationToken, int?, bool)
releaseObjectGroup
public Task<ReleaseObjectGroupCommandResponse?> ReleaseObjectGroup(ReleaseObjectGroupCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandReleaseObjectGroupCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
RemoveBinding(RemoveBindingCommandSettings, CancellationToken, int?, bool)
removeBinding
public Task<RemoveBindingCommandResponse?> RemoveBinding(RemoveBindingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandRemoveBindingCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
RunIfWaitingForDebugger(RunIfWaitingForDebuggerCommandSettings?, CancellationToken, int?, bool)
runIfWaitingForDebugger
public Task<RunIfWaitingForDebuggerCommandResponse?> RunIfWaitingForDebugger(RunIfWaitingForDebuggerCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandRunIfWaitingForDebuggerCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
RunScript(RunScriptCommandSettings, CancellationToken, int?, bool)
runScript
public Task<RunScriptCommandResponse> RunScript(RunScriptCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandRunScriptCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetAsyncCallStackDepth(SetAsyncCallStackDepthCommandSettings, CancellationToken, int?, bool)
setAsyncCallStackDepth
public Task<SetAsyncCallStackDepthCommandResponse?> SetAsyncCallStackDepth(SetAsyncCallStackDepthCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetAsyncCallStackDepthCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetCustomObjectFormatterEnabled(SetCustomObjectFormatterEnabledCommandSettings, CancellationToken, int?, bool)
setCustomObjectFormatterEnabled
public Task<SetCustomObjectFormatterEnabledCommandResponse?> SetCustomObjectFormatterEnabled(SetCustomObjectFormatterEnabledCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetCustomObjectFormatterEnabledCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetMaxCallStackSizeToCapture(SetMaxCallStackSizeToCaptureCommandSettings, CancellationToken, int?, bool)
setMaxCallStackSizeToCapture
public Task<SetMaxCallStackSizeToCaptureCommandResponse?> SetMaxCallStackSizeToCapture(SetMaxCallStackSizeToCaptureCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetMaxCallStackSizeToCaptureCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
TerminateExecution(TerminateExecutionCommandSettings?, CancellationToken, int?, bool)
terminateExecution
public Task<TerminateExecutionCommandResponse?> TerminateExecution(TerminateExecutionCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandTerminateExecutionCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
BindingCalled
bindingCalled
public event EventHandler<BindingCalledEventArgs>? BindingCalledEvent Type
ConsoleAPICalled
consoleAPICalled
public event EventHandler<ConsoleAPICalledEventArgs>? ConsoleAPICalledEvent Type
ExceptionRevoked
exceptionRevoked
public event EventHandler<ExceptionRevokedEventArgs>? ExceptionRevokedEvent Type
ExceptionThrown
exceptionThrown
public event EventHandler<ExceptionThrownEventArgs>? ExceptionThrownEvent Type
ExecutionContextCreated
executionContextCreated
public event EventHandler<ExecutionContextCreatedEventArgs>? ExecutionContextCreatedEvent Type
ExecutionContextDestroyed
executionContextDestroyed
public event EventHandler<ExecutionContextDestroyedEventArgs>? ExecutionContextDestroyedEvent Type
ExecutionContextsCleared
executionContextsCleared
public event EventHandler<ExecutionContextsClearedEventArgs>? ExecutionContextsClearedEvent Type
InspectRequested
inspectRequested
public event EventHandler<InspectRequestedEventArgs>? InspectRequested