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

31 lines
756 B
C#

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);
}
}
}
}