You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using DSWeb.Job.Common;
|
|
|
|
|
using Quartz.Impl;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.Job.SendEdiToYard
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
//if (Environment.UserInteractive)
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
Console.Title = "舱单主分单延迟提交服务程序";
|
|
|
|
|
Console.WriteLine("服务启动中……");
|
|
|
|
|
StdSchedulerFactory.GetDefaultScheduler().Start();
|
|
|
|
|
StdSchedulerFactory.GetDefaultScheduler().ListenerManager.AddSchedulerListener(new JobListener());
|
|
|
|
|
Console.WriteLine("服务已启动,输入quit退出");
|
|
|
|
|
while (true)
|
|
|
|
|
{
|
|
|
|
|
if (Console.ReadLine() == "quit")
|
|
|
|
|
{
|
|
|
|
|
StdSchedulerFactory.GetDefaultScheduler().Shutdown();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// ServiceBase[] ServicesToRun;
|
|
|
|
|
// ServicesToRun = new ServiceBase[]
|
|
|
|
|
// {
|
|
|
|
|
// new MskService()
|
|
|
|
|
// };
|
|
|
|
|
// ServiceBase.Run(ServicesToRun);
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|