1234567891011121314151617181920212223242526272829 |
- using SMP.Tool.TimingTask.Core;
- using SMP.Tool.TimingTask.Jobs;
- using System;
- using System.Threading.Tasks;
- using Topshelf;
- namespace SMP.Tool.TimingTask
- {
- class Program
- {
- static async Task Main(string[] args)
- {
- // AsyncUPSFuelTaskJob asyncUPSFuelTaskJob = new AsyncUPSFuelTaskJob();
- //await asyncUPSFuelTaskJob.Execute(null);
- HostFactory.Run(x =>
- {
- x.Service<ServiceRunner>();
- x.RunAsLocalSystem();
- x.SetDescription("SMP定时任务程序");
- x.SetDisplayName("SMP定时任务程序");
- x.SetServiceName("SMP定时任务程序");
- x.EnablePauseAndContinue();
- });
- }
- }
- }
|