C# 简易定时任务服务

上传者: zhujiangdu123 | 上传时间: 2022-05-13 09:34:40 | 文件大小: 124KB | 文件类型: RAR
用C# Timer 实现的简易定时任务windows服务,加入执行时间自行修补功能,可以基本实现每隔1分钟调取一次接口的场景,代码从项目中剥离,无法直接运行,可以下载后查阅源代码,核心代码在 PushService.cs 文件中

文件下载

资源详情

[{"title":"( 56 个子文件 124KB ) C# 简易定时任务服务","children":[{"title":"Pusher.WinService.csproj <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"PushService.exe.config <span style='color:#111;'> 284B </span>","children":null,"spread":false},{"title":"PushService.exe <span style='color:#111;'> 20.50KB </span>","children":null,"spread":false},{"title":"PushService.pdb <span style='color:#111;'> 51.50KB </span>","children":null,"spread":false},{"title":"app.publish","children":[{"title":"PushService.exe <span style='color:#111;'> 20.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"PushService.exe.manifest <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"PushService.application <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"PushService.exe.config <span style='color:#111;'> 284B </span>","children":null,"spread":false},{"title":"PushService.exe <span style='color:#111;'> 19.00KB </span>","children":null,"spread":false},{"title":"PushService.pdb <span style='color:#111;'> 49.50KB </span>","children":null,"spread":false},{"title":"app.publish","children":[{"title":"PushService.exe <span style='color:#111;'> 19.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"PushService.exe.manifest <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"PushService.application <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LogHelper.cs <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Pusher.ProjectInstaller.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Pusher.WinService.csproj.GenerateResource.cache <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"Pusher.WinService.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"Pusher.WinService.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"Pusher.csprojAssemblyReference.cache <span style='color:#111;'> 8.79KB </span>","children":null,"spread":false},{"title":"Pusher.WinService.csprojAssemblyReference.cache <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.02KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"PushService.exe <span style='color:#111;'> 20.50KB </span>","children":null,"spread":false},{"title":"PushService.pdb <span style='color:#111;'> 51.50KB </span>","children":null,"spread":false},{"title":"PushService.TrustInfo.xml <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"Pusher.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"PushService.exe.manifest <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"PushService.application <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"WinServicePusher.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false}],"spread":false},{"title":"Release","children":[{"title":"Pusher.ProjectInstaller.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Pusher.WinService.csproj.GenerateResource.cache <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"Pusher.WinService.csproj.FileListAbsolute.txt <span style='color:#111;'> 1020B </span>","children":null,"spread":false},{"title":"Pusher.WinService.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"Pusher.WinService.csprojAssemblyReference.cache <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.08KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"PushService.exe <span style='color:#111;'> 19.00KB </span>","children":null,"spread":false},{"title":"PushService.pdb <span style='color:#111;'> 49.50KB </span>","children":null,"spread":false},{"title":"PushService.TrustInfo.xml <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"PushService.exe.manifest <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"PushService.application <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Properties","children":[{"title":"app.manifest <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 561B </span>","children":null,"spread":false},{"title":"PushService.cs <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"PushService.Designer.cs <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"HttpHelper.cs <span style='color:#111;'> 15.87KB </span>","children":null,"spread":false},{"title":"ProjectInstaller.Designer.cs <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 284B </span>","children":null,"spread":false},{"title":"ProjectInstaller.resx <span style='color:#111;'> 6.27KB </span>","children":null,"spread":false},{"title":"ProjectInstaller.cs <span style='color:#111;'> 441B </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明