コード例 #1
0
ファイル: GetUIThread.cs プロジェクト: jwhite/mangosteen
 public static CoreDispatcher GrabUIDispatcher()
 {
     var helper = new GetUIThread();
     Task<CoreDispatcher> t = helper.GrabUIDispatcherAsync();
     t.Wait();
     return t.Result;
 }
コード例 #2
0
ファイル: GetUIThread.cs プロジェクト: jwhite/mangosteen
 public static SynchronizationContext GrabUISynchronizationContext()
 {
     var helper = new GetUIThread();
     Task<SynchronizationContext> t = helper.GrabUISynchronizationContextAsync();
     t.Wait();
     return t.Result;
 }