Commit 1397b2a2 authored by 罗超's avatar 罗超

修改计划任务

parent b9699139
......@@ -156,7 +156,7 @@ namespace Edu.Education.Helper
/// <returns></returns>
public async Task CheckPerparingTimer()
{
string CronExpression = "0 08 13,18 * * ?";
string CronExpression = "0 30 13,18 * * ?";
NameValueCollection props = new NameValueCollection
{
{ "quartz.serializer.type", "binary" }
......
......@@ -9,17 +9,17 @@ namespace Edu.EducationCore
{
static void Main(string[] args)
{
//ServiceBase[] ServicesToRun;
//ServicesToRun = new ServiceBase[]
//{
// new EducationTimerServer(),
//};
//ServiceBase.Run(ServicesToRun);
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new EducationTimerServer(),
};
ServiceBase.Run(ServicesToRun);
Console.WriteLine("来了");
new QuarzHelper().CheckPerparingTimer().GetAwaiter().GetResult();
Console.WriteLine("结束了");
Console.ReadKey();
//Console.WriteLine("来了");
//new QuarzHelper().CheckPerparingTimer().GetAwaiter().GetResult();
//Console.WriteLine("结束了");
//Console.ReadKey();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment