35 lines
834 B
C#
35 lines
834 B
C#
// Copyright (c) 2017 Informatikbüro Daniel Schick
|
|
//
|
|
|
|
|
|
using System.Diagnostics;
|
|
using System.ServiceProcess;
|
|
|
|
namespace bsmd.ExcelReadService
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
private static void Main()
|
|
{
|
|
ServiceBase[] ServicesToRun;
|
|
|
|
log4net.Config.XmlConfigurator.Configure();
|
|
|
|
ServicesToRun = new ServiceBase[] { new ExcelReadService() };
|
|
|
|
if (Debugger.IsAttached)
|
|
{
|
|
// Confirmation.InitDictionaries();
|
|
((ExcelReadService)ServicesToRun[0]).DoOnce();
|
|
}
|
|
else
|
|
{
|
|
ServiceBase.Run(ServicesToRun);
|
|
}
|
|
}
|
|
}
|
|
}
|