Catel.Windows.Threading.DispatcherHelper.BeginInvoke C# (CSharp) Method

BeginInvoke() public static method

Begins the invocation of an action using the dispatcher.
The is null. The is null.
public static BeginInvoke ( this dispatcher, System.Action action ) : void
dispatcher this The dispatcher.
action System.Action The action.
return void
        public static void BeginInvoke(this CoreDispatcher dispatcher, Action action)
        {
            Argument.IsNotNull("dispatcher", dispatcher);
            Argument.IsNotNull("action", action);

#pragma warning disable 4014
            dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => action());
#pragma warning restore 4014
        }
#endif