public void SetComplate(string result) { string dir = new AssemblyExt().GetAppDir(appType); _result = result; IsCompleted = true; "In Async Function".WriteLog(dir); if (_asyncCallBack != null) { _asyncCallBack(this); } }
public void OpenAsyncThread(AsyncCallback call, object callParam, AppStruct appType) { var async = new AsyncRequestHelper(call, callParam, appType); new Thread(() => {//开启线程 string dir = new AssemblyExt().GetAppDir(appType); //此处应该增加日志记录功能 "Begin Call Async Thread".WriteLog(dir); //线程调度 async.SetComplate(string.Empty); //日志 记录结束标志 "End Call Async Thread".WriteLog(dir); }).Start(); }