welsonjs/WelsonJS.Toolkit/WelsonJS.Service/Program.cs
Namhyeon, Go d5f55e0f28
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Fix issue the cannot find the working directroy
2024-07-29 16:06:04 +09:00

32 lines
786 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(args);
svc.TestStartupAndStop();
}
else
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new ServiceMain(args)
};
ServiceBase.Run(ServicesToRun);
}
}
}
}