Share via


Dispatcher Class

Definition

Dispatches external actions to be executed on the context of a Renderer.

public ref class Dispatcher abstract
public abstract class Dispatcher
type Dispatcher = class
Public MustInherit Class Dispatcher
Inheritance
Dispatcher

Constructors

Dispatcher()

Methods

AssertAccess()

Validates that the currently executing code is running inside the dispatcher.

CheckAccess()

Returns a value that determines whether using the dispatcher to invoke a work item is required from the current context.

CreateDefault()

Creates a default instance of Dispatcher.

InvokeAsync(Action)

Invokes the given Action in the context of the associated Renderer.

InvokeAsync(Func<Task>)

Invokes the given Func<TResult> in the context of the associated Renderer.

InvokeAsync<TResult>(Func<Task<TResult>>)

Invokes the given Func<TResult> in the context of the associated Renderer.

InvokeAsync<TResult>(Func<TResult>)

Invokes the given Func<TResult> in the context of the associated Renderer.

OnUnhandledException(UnhandledExceptionEventArgs)

Called to notify listeners of an unhandled exception.

Applies to