码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2018-08-10 19:58:55      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:erro   color   for   time   col   orm   div   string   方法   

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);
                        });         

 

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

标签:erro   color   for   time   col   orm   div   string   方法   

原文地址:https://www.cnblogs.com/yechangzhong-826217795/p/9456536.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!