Click or drag to resize

CefTaskRunner Class

Class that asynchronously executes tasks on the associated thread. It is safe to call the methods of this class on any thread. CEF maintains multiple internal threads that are used for handling different types of tasks in different processes. The cef_thread_id_t definitions in cef_types.h list the common CEF threads. Task runners are also available for other CEF threads as appropriate (for example, V8 WebWorker threads).
Inheritance Hierarchy
SystemObject
  Internal.Xilium.CefGlueCefTaskRunner

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

The CefTaskRunner type exposes the following members.

Properties
 NameDescription
Public propertyBelongsToCurrentThread Returns true if this task runner belongs to the current thread.
Top
Methods
 NameDescription
Public methodBelongsToThread Returns true if this task runner is for the specified CEF thread.
Public methodDisposeReleases all resources used by the CefTaskRunner
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize
(Overrides ObjectFinalize)
Public methodStatic memberGetForCurrentThread Returns the task runner for the current thread. Only CEF threads will have task runners. An empty reference will be returned if this method is called on an invalid thread.
Public methodStatic memberGetForThread Returns the task runner for the specified CEF thread.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsSame Returns true if this object is pointing to the same task runner as |that| object.
Public methodPostDelayedTask Post a task for delayed execution on the thread associated with this task runner. Execution will occur asynchronously. Delayed tasks are not supported on V8 WebWorker threads and will be executed without the specified delay.
Public methodPostTask Post a task for execution on the thread associated with this task runner. Execution will occur asynchronously.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also