using SMP.Tool.TimingTask.Core; using System; using Topshelf; namespace SMP.Tool.TimingTask { class Program { static void Main(string[] args) { HostFactory.Run(x => { x.Service(); x.RunAsLocalSystem(); x.SetDescription("定时任务程序"); x.SetDisplayName("定时任务程序"); x.SetServiceName("定时任务程序"); x.EnablePauseAndContinue(); }); } } }