Click or drag to resize

CefV8Context Class

Class representing a V8 context handle. V8 handles can only be accessed from the thread on which they are created. Valid threads for creating a V8 handle include the render process main thread (TID_RENDERER) and WebWorker threads. A task runner for posting tasks on the associated thread can be retrieved via the CefV8Context::GetTaskRunner() method.
Inheritance Hierarchy
SystemObject
  Internal.Xilium.CefGlueCefV8Context

Namespace:  Internal.Xilium.CefGlue
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public sealed class CefV8Context : IDisposable

The CefV8Context type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberInContext
Returns true if V8 is currently inside a context.
Public propertyIsValid
Returns true if the underlying handle is valid and it can be accessed on the current thread. Do not call any other methods if this method returns false.
Top
Methods
  NameDescription
Public methodDispose
Releases all resources used by the CefV8Context
Public methodEnter
Enter this context. A context must be explicitly entered before creating a V8 Object, Array, Function or Date asynchronously. Exit() must be called the same number of times as Enter() before releasing this context. V8 objects belong to the context in which they are created. Returns true if the scope was entered successfully.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExit
Exit this context. Call this method only after calling Enter(). Returns true if the scope was exited successfully.
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetBrowser
Returns the browser for this context. This method will return an empty reference for WebWorker contexts.
Public methodStatic memberGetCurrentContext
Returns the current (top) context object in the V8 context stack.
Public methodStatic memberGetEnteredContext
Returns the entered (bottom) context object in the V8 context stack.
Public methodGetFrame
Returns the frame for this context. This method will return an empty reference for WebWorker contexts.
Public methodGetGlobal
Returns the global object for this context. The context must be entered before calling this method.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTaskRunner
Returns the task runner associated with this context. V8 handles can only be accessed from the thread on which they are created. This method can be called on any render process thread.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsSame
Returns true if this object is pointing to the same handle as |that| object.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryEval
Evaluates the specified JavaScript code using this context's global object. On success |retval| will be set to the return value, if any, and the function will return true. On failure |exception| will be set to the exception, if any, and the function will return false.
Top
Extension Methods
See Also