当前位置: 移动技术网 > IT编程>开发语言>.net > 异步执行

异步执行

2019年03月16日  | 移动技术网IT编程  | 我要评论

http error 503,国际烟花网,esprit羽绒服

//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();
        }
异步执行

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网