异步执行
程序员文章站
2022-03-20 10:18:38
//BS架构下的异步执行文件 public delegate void NotifyExamDelegate(int SingleCount); AsyncSendEmailToUser(0); void AsyncSendEmailToUser(int SingleCount) { NotifyE ......
//bs架构下的异步执行文件 public delegate void notifyexamdelegate(int singlecount); asyncsendemailtouser(0); void asyncsendemailtouser(int singlecount) { notifyexamdelegate del = new notifyexamdelegate(sendemailtouser); iasyncresult ar = del.begininvoke(singlecount, new asynccallback(callbackmethod), del); } void callbackmethod(iasyncresult ar) { notifyexamdelegate del = (notifyexamdelegate)ar.asyncstate; del.endinvoke(ar); } public void sendemailtouser(int num) { bool flag = bll.insert_hr_exam_user(); }
上一篇: 企业上云助力数字化转型,推动产业互联
下一篇: Photoshop滤镜制作简单的云彩特效