Click or drag to resize

IDispatcherRunAsync Method (DispatcherPriority, Action)

Executes the specified delegate asynchronously with the specified arguments, at the specified priority, on the thread that the IDispatcher was created on.

Namespace:  Cauldron.XAML.Threading
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
Task RunAsync(
	DispatcherPriority priority,
	Action action
)

Parameters

priority
Type: Cauldron.XAML.ThreadingDispatcherPriority
The priority, relative to the other pending operations in the IDispatcher event queue, the specified method is invoked.
action
Type: SystemAction
The delegate to a method, which is pushed onto the IDispatcher event queue.

Return Value

Type: Task
Returns a awaitable task
Exceptions
ExceptionCondition
ArgumentNullExceptionaction is null
See Also