C# 将某个方法去异步执行

C# 将某个方法去异步执行

 Task.Run(() => {
                            string msgerror = SendPhoneCode.NewSendByTemplate(apply.PhoneNum, "SMS_133380052", "{Date:'" + deadlinetime.ToString("MM月dd日") + "'}");
                            handlelogbll.AddLog(string.Format("{0},短信日志{1}", "[不受理]后短信通知", msgerror), apply.ApplyId);
                        });         

 

posted @ 2018-08-10 17:47  代码沉思者  阅读(3310)  评论(0编辑  收藏  举报