Table of Contents

Interface IDispatcher

Namespace
Avalonia.Threading
Assembly
Avalonia.Base.dll

Dispatches jobs to a thread.

public interface IDispatcher

Methods

CheckAccess()

Determines whether the calling thread is the thread associated with this IDispatcher.

bool CheckAccess()

Returns

bool

True if he calling thread is the thread associated with the dispatched, otherwise false.

Post(Action, DispatcherPriority)

Posts an action that will be invoked on the dispatcher thread.

void Post(Action action, DispatcherPriority priority = default)

Parameters

action Action

The method.

priority DispatcherPriority

The priority with which to invoke the method.

VerifyAccess()

Throws an exception if the calling thread is not the thread associated with this IDispatcher.

void VerifyAccess()