mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 23:14:58 +00:00
32 lines
782 B
C#
32 lines
782 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ServiceProcess;
|
|
using System.Text;
|
|
|
|
namespace WelsonJS.Service
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// 해당 애플리케이션의 주 진입점입니다.
|
|
/// </summary>
|
|
static void Main(string[] args)
|
|
{
|
|
if (Environment.UserInteractive)
|
|
{
|
|
ServiceMain svc = new ServiceMain();
|
|
svc.TestStartupAndStop(args);
|
|
}
|
|
else
|
|
{
|
|
ServiceBase[] ServicesToRun;
|
|
ServicesToRun = new ServiceBase[]
|
|
{
|
|
new ServiceMain()
|
|
};
|
|
ServiceBase.Run(ServicesToRun);
|
|
}
|
|
}
|
|
}
|
|
}
|