Class DispatcherExtensions

Extension methods for the System.Windows.Threading.Dispatcher object that provides an easy way for delayed execution of code.

System.Object
  MarkdownMonster.Windows.DispatcherExtensions
public static class DispatcherExtensions : object

Class Members

MemberDescription

Delay

Dispatcher.Delay Extension method that delay executes an action.

public static void Delay(Dispatcher disp,     int delayMs,     Action action,     DispatcherPriority priority)

public static void Delay(Dispatcher disp,     int delayMs,     Action action,     object parm,     DispatcherPriority priority)

DelayAsync

Dispatcher.Delay Extension method that delay executes an action. This version awaits both the delay and the synchronized action

public static Task DelayAsync(Dispatcher disp,     int delayMs,     Action action,     object parm,     DispatcherPriority priority)

public static Task DelayAsync(Dispatcher disp,     int delayMs,     Action action,     DispatcherPriority priority)

RunSync

Allows running an Async Operation synchronously by waiting for a result.

public static void RunSync(Dispatcher disp,     Func del)

RunSync

public static TResult RunSync(Dispatcher disp,     Func<Task`1> del)

Requirements

Namespace: MarkdownMonster.Windows
Assembly: markdownmonster.exe

© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic