12345678910111213141516171819202122232425 |
- 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<ServiceRunner>();
- x.RunAsLocalSystem();
- x.SetDescription("定时任务程序");
- x.SetDisplayName("定时任务程序");
- x.SetServiceName("定时任务程序");
- x.EnablePauseAndContinue();
- });
- }
- }
- }
|