C# Class Cimbalino.Phone.Toolkit.Extensions.DispatcherExtensions

Provides a set of static (Shared in Visual Basic) methods for Dispatcher instances.
Show file Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

Method Description
BeginInvokeAfterTimeout ( this dispatcher, System.TimeSpan timeout, System.Action action ) : void

Executes the specified action asynchronously on the thread the Dispatcher is associated with, after the specified timeout.

BeginInvokeAfterTimeout ( this dispatcher, double timeout, System.Action action ) : void

Executes the specified action asynchronously on the thread the Dispatcher is associated with, after the specified timeout.

ToTaskSchedulerAsync ( this dispatcher ) : Task

Retrieves a TaskScheduler instance for the thread the Dispatcher is associated with.

Method Details

BeginInvokeAfterTimeout() public static method

Executes the specified action asynchronously on the thread the Dispatcher is associated with, after the specified timeout.
public static BeginInvokeAfterTimeout ( this dispatcher, System.TimeSpan timeout, System.Action action ) : void
dispatcher this The dispatcher instance.
timeout System.TimeSpan The representing the amount of time to delay before the action is invoked.
action System.Action The to execute.
return void

BeginInvokeAfterTimeout() public static method

Executes the specified action asynchronously on the thread the Dispatcher is associated with, after the specified timeout.
public static BeginInvokeAfterTimeout ( this dispatcher, double timeout, System.Action action ) : void
dispatcher this The dispatcher instance.
timeout double The amount of time to delay before the action is invoked.
action System.Action The to execute.
return void

ToTaskSchedulerAsync() public static method

Retrieves a TaskScheduler instance for the thread the Dispatcher is associated with.
public static ToTaskSchedulerAsync ( this dispatcher ) : Task
dispatcher this The dispatcher instance.
return Task