21 lines
445 B
C#
21 lines
445 B
C#
|
using System.ServiceProcess;
|
|||
|
|
|||
|
namespace AutomaticTimingWindowsService
|
|||
|
{
|
|||
|
static class Program
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 应用程序的主入口点。
|
|||
|
/// </summary>
|
|||
|
static void Main()
|
|||
|
{
|
|||
|
ServiceBase[] ServicesToRun;
|
|||
|
ServicesToRun = new ServiceBase[]
|
|||
|
{
|
|||
|
new TimingService()
|
|||
|
};
|
|||
|
ServiceBase.Run(ServicesToRun);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|