基于winform的应用守护程序-支持服务与应用程序/// <summary> /// 检查服务并启动 /// </summary> /// <returns></returns> private static async Task CheckServiceAndRunAsync() { Task.Run(async () => { while (true) { try { AppsettingsConfig.LastRunTime = DateTime.Now; if (AppsettingsConfig.ApplicationNameList.IsLi