Lezen in het Engels

Delen via


Dispatcher Class

Definition

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

C#
public abstract class Dispatcher
Inheritance
Dispatcher

Constructors

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

Product Versies
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0