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

修改计划任务

parent b9699139
...@@ -156,7 +156,7 @@ namespace Edu.Education.Helper ...@@ -156,7 +156,7 @@ namespace Edu.Education.Helper
/// <returns></returns> /// <returns></returns>
public async Task CheckPerparingTimer() public async Task CheckPerparingTimer()
{ {
string CronExpression = "0 08 13,18 * * ?"; string CronExpression = "0 30 13,18 * * ?";
NameValueCollection props = new NameValueCollection NameValueCollection props = new NameValueCollection
{ {
{ "quartz.serializer.type", "binary" } { "quartz.serializer.type", "binary" }
......
...@@ -9,17 +9,17 @@ namespace Edu.EducationCore ...@@ -9,17 +9,17 @@ namespace Edu.EducationCore
{ {
static void Main(string[] args) static void Main(string[] args)
{ {
//ServiceBase[] ServicesToRun; ServiceBase[] ServicesToRun;
//ServicesToRun = new ServiceBase[] ServicesToRun = new ServiceBase[]
//{ {
// new EducationTimerServer(), new EducationTimerServer(),
//}; };
//ServiceBase.Run(ServicesToRun); ServiceBase.Run(ServicesToRun);
Console.WriteLine("来了"); //Console.WriteLine("来了");
new QuarzHelper().CheckPerparingTimer().GetAwaiter().GetResult(); //new QuarzHelper().CheckPerparingTimer().GetAwaiter().GetResult();
Console.WriteLine("结束了"); //Console.WriteLine("结束了");
Console.ReadKey(); //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