Click or drag to resize

RuntimeClient Class

Version 92.0.260
Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.
Inheritance Hierarchy

Namespace:  CefSharp.DevTools.Runtime
Assembly:  CefSharp (in CefSharp.dll) Version: 92.0.260.0 (92.0.260.0)
Syntax
public class RuntimeClient : DevToolsDomainBase

The RuntimeClient type exposes the following members.

Constructors
  NameDescription
Public methodRuntimeClient
Runtime
Top
Methods
  NameDescription
Public methodAddBindingAsync
If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.
Public methodAwaitPromiseAsync
Add handler to promise with given promise object id.
Public methodCallFunctionOnAsync
Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
Public methodCompileScriptAsync
Compiles expression.
Public methodDisableAsync
Disables reporting of execution contexts creation.
Public methodDiscardConsoleEntriesAsync
Discards collected exceptions and console API calls.
Public methodEnableAsync
Enables reporting of execution contexts creation by means of `executionContextCreated` event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
Protected methodEnumToString(Enum) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(ContentEncoding) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(CSPViolationType) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(DisabledImageType) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(PermissionType) (Inherited from DevToolsDomainBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluateAsync
Evaluates expression on global object.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHeapUsageAsync
Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.
Public methodGetIsolateIdAsync
Returns the isolate id.
Public methodGetPropertiesAsync
Returns properties of a given object. Object group of the result is inherited from the target object.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGlobalLexicalScopeNamesAsync
Returns all let, const and class variables from global scope.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodQueryObjectsAsync
QueryObjects
Public methodReleaseObjectAsync
Releases remote object with given id.
Public methodReleaseObjectGroupAsync
Releases all remote objects that belong to a given group.
Public methodRemoveBindingAsync
This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.
Public methodRunIfWaitingForDebuggerAsync
Tells inspected instance to run if it was waiting for debugger to attach.
Public methodRunScriptAsync
Runs script with given id in a given context.
Public methodSetAsyncCallStackDepthAsync
Enables or disables async call stacks tracking.
Public methodSetCustomObjectFormatterEnabledAsync
SetCustomObjectFormatterEnabled
Public methodSetMaxCallStackSizeToCaptureAsync
SetMaxCallStackSizeToCapture
Public methodTerminateExecutionAsync
Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.
Protected methodToBase64String (Inherited from DevToolsDomainBase.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventBindingCalled
Notification is issued every time when binding is called.
Public eventConsoleAPICalled
Issued when console API was called.
Public eventExceptionRevoked
Issued when unhandled exception was revoked.
Public eventExceptionThrown
Issued when exception was thrown and unhandled.
Public eventExecutionContextCreated
Issued when new execution context is created.
Public eventExecutionContextDestroyed
Issued when execution context is destroyed.
Public eventExecutionContextsCleared
Issued when all executionContexts were cleared in browser
Public eventInspectRequested
Issued when object should be inspected (for example, as a result of inspect() command line API call).
Top
See Also