/// <summary> /// 异步工作方法 /// </summary> /// <typeparam name="T">异步工作结果数据泛型</typeparam> /// <param name="workerMethod">异步工作方法</param> /// <param name="workerMethodCompletedCallback">异步工作方法已完成回调函数</param> /// <returns>异步工作器句柄</returns> public static AsyncWorkerHandle <T> DoWork <T>( DoWorkEventHandler workerMethod, EventHandler <AsyncWorkerCallbackEventArgs <T> > workerMethodCompletedCallback) { return(AsyncWorkerHelper.DoWork <T>(workerMethod, 0, null, workerMethodCompletedCallback)); }
/// <summary> /// 异步工作方法 /// </summary> /// <typeparam name="T">异步工作结果数据泛型</typeparam> /// <param name="workerMethod">异步工作方法</param> /// <returns>异步工作器句柄</returns> public static AsyncWorkerHandle <T> DoWork <T>( DoWorkEventHandler workerMethod) { return(AsyncWorkerHelper.DoWork <T>(workerMethod, 0, null, null)); }