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