37 lines
881 B
C#
37 lines
881 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.ServiceProcess;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace bsmd.dakosy.ResponseService
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
static void Main()
|
|
{
|
|
ServiceBase[] ServicesToRun;
|
|
ServicesToRun = new ServiceBase[]
|
|
{
|
|
new SFTPService()
|
|
};
|
|
|
|
log4net.Config.XmlConfigurator.Configure();
|
|
|
|
if (Debugger.IsAttached)
|
|
{
|
|
((SFTPService)ServicesToRun[0]).Init(null);
|
|
}
|
|
else
|
|
{
|
|
ServiceBase.Run(ServicesToRun);
|
|
}
|
|
}
|
|
}
|
|
}
|