Home > Net >  C # to add a Windows service, timing task. Turn
C # to add a Windows service, timing task. Turn

Time:10-03

Onstart events have been an error

CodePudding user response:

Code is loathe to give up?

CodePudding user response:

With the console first transferred through the ah

CodePudding user response:

https://www.cnblogs.com/Vincent-yuan/p/10859129.html

CodePudding user response:

Like you what also don't say I can only say try catch {} {} is not an error

CodePudding user response:


EventLogSource is I used to in the system of the add service execution logs the event viewer, regardless of the Timer is a Timer, ms, if that still doesn't solve your problem, I suggest you go to Microsoft's website example, baidu: Microsoft Windows service; Just went, Microsoft's official has enough accurate, should be able to help you solve this problem, the onTimer is my timer trigger method, the onTimer. Remember to add the timer stop, such methods as performed to start again, or it will lead to methods haven't complete it again

CodePudding user response:

Topshelf + Quartz.Net
Windows service framework + clock scheduling framework
Topshelf good debugging, debugging good installed as Windows Service

Quartz.Net is the c # version of Quartz
  •  Tags:  
  • C#
  • Related