ComplianceServer/oldcode/CRMServices/Program.cs

29 lines
689 B
C#

using System.ServiceProcess;
namespace WX.CRM.CRMServices
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
static void Main()
{
try
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new CRMWinServices()
};
ServiceBase.Run(ServicesToRun);
}
catch (System.Exception ex)
{
WX.CRM.Common.LogHelper.Error(string.Format("启动前报错:{0},{1}", ex.Message, ex.StackTrace));
}
}
}
}