Task.Factory.StartNew( () => { RBILogs.WriteLog("系统日志", "视频:查询不到录像文件,程序2秒后重启"); Thread.Sleep(2000); Environment.Exit(0); });