/// <summary> /// 记录程序启动时间 /// </summary> private void RecordApplicationRunTime() { Task.Run(() => { LogWritterFactory.Write("订单通知程序启动", string.Format("订单通知程序启动时间:{0}", GlobalPara.ApplicationStartTime)); }); }
private void JobManager_JobException(JobExceptionInfo obj) { LogWritterFactory.Write("订单通知程序作业异常", string.Format("订单通知程序作业[{0}]异常:原因:{1}", obj.Name, obj.Exception)); }