天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
namespace ProcessFileSyncService
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
static void Main(string[] Args)
{
QMFrameWork.Log.LogManager.Configure("log4net");
QMFrameWork.Data.DataFactory.Configure(true);
if (Args==null||Args.Length==0||!Args[0].Equals("DEBUG"))
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new FileSyncService()
};
QMFrameWork.Log.LogManager.LogHelper.Info(
new QMFrameWork.Log.LogInfo { ClientIP = "localhost", UserName = "admin", Info = "服务开始" });
ServiceBase.Run(ServicesToRun);
}
else
{
FileSyncService m = new FileSyncService();
m.TestStart();
Console.ReadLine();
}//m.TestStop();
}
}
}