37 lines
860 B
C#
37 lines
860 B
C#
// Copyright (c) 2020-present schick Informatik
|
|
// Description: Tool main entry point
|
|
|
|
using System.Diagnostics;
|
|
using System.ServiceProcess;
|
|
|
|
namespace bsmd.POService
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
public static void Main()
|
|
{
|
|
ServiceBase[] ServicesToRun;
|
|
|
|
log4net.Config.XmlConfigurator.Configure();
|
|
|
|
ServicesToRun = new ServiceBase[]
|
|
{
|
|
new POService()
|
|
};
|
|
|
|
if (Debugger.IsAttached)
|
|
{
|
|
((POService)ServicesToRun[0]).DoOnce();
|
|
}
|
|
else
|
|
{
|
|
ServiceBase.Run(ServicesToRun);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|