git_bsmd/nsw/Source/bsmd.ExcelReadService/Program.cs

35 lines
817 B
C#

// Copyright (c) 2017 Informatikbüro Daniel Schick
//
using System.Diagnostics;
using System.ServiceProcess;
namespace bsmd.ExcelReadService
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
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);
}
}
}
}