示例#1
0
 internal static void PostMessage(AsyncTaskMessage message)
 {
     if (uiController != null)
     {
         uiController.BeginInvoke(new PostMessageCallback(AsyncTaskManager.UIThreadCallback), new object[] { message });
     }
 }
示例#2
0
 private static void UIThreadCallback(AsyncTaskMessage message)
 {
     message.Task.RaiseResultPostedEvent(message.Data, message.PercentComplete, message.IsComplete);
 }