welsonjs/WelsonJS.Toolkit/WelsonJS.Service/Program.cs
Namhyeon, Go b5af648512
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
Some works for #124
2024-07-29 01:35:46 +09:00

33 lines
824 B
C#

using System;
using System.ServiceProcess;
namespace WelsonJS.Service
{
internal static class Program
{
/// <summary>
/// entry point
/// </summary>
static void Main(string[] args)
{
ServiceMain svc = new ServiceMain();
if (Environment.UserInteractive)
{
Console.WriteLine("Welcome to WelsonJS Scripting Service...");
Console.WriteLine("https://github.com/gnh1201/welsonjs");
svc.TestStartupAndStop(args);
}
else
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
svc
};
ServiceBase.Run(ServicesToRun);
}
}
}
}