mirror of
https://github.com/snltty/linker.git
synced 2025-10-16 22:21:16 +08:00
25 lines
556 B
C#
25 lines
556 B
C#
using System.ServiceProcess;
|
|
|
|
namespace linker.service
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
AppDomain.CurrentDomain.UnhandledException += (a, b) =>
|
|
{
|
|
};
|
|
|
|
if (OperatingSystem.IsWindows())
|
|
{
|
|
ServiceBase[] ServicesToRun;
|
|
ServicesToRun = new ServiceBase[]
|
|
{
|
|
new LinkerService(args)
|
|
};
|
|
ServiceBase.Run(ServicesToRun);
|
|
}
|
|
}
|
|
}
|
|
}
|