AdjustSdk.Uap.UtilUap.runInForeground C# (CSharp) Method

runInForeground() public static method

public static runInForeground ( CoreDispatcher Dispatcher, System.Action actionToRun ) : void
Dispatcher Windows.UI.Core.CoreDispatcher
actionToRun System.Action
return void
        public static void runInForeground(CoreDispatcher Dispatcher, Action actionToRun)
        {
            if (Dispatcher != null)
                Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => actionToRun());
            else
                Windows.System.Threading.ThreadPool.RunAsync(handler => actionToRun());
        }