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

  • Post author:
  • Post category:其他

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

 

转载于:https://www.cnblogs.com/yechangzhong-826217795/p/9456536.html