Esempio n. 1
0
 /// <summary>
 /// 执行两个操作:
 /// 1,记下对Dispatcher.CurrentDispatcher的引用,因为Splash会另开一个UI线程,防止访问到Splash线程的Dispatcher.CurrentDispatcher;
 /// 2,设置Writer.UIThreadId;
 /// </summary>
 public static void InitializeWithDispatcher(Dispatcher dispatcher)
 {
     _dispatcher = dispatcher;
     Write.SetUIThreadId(_dispatcher.Thread.ManagedThreadId);
 }