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