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