Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
1397b2a2
Commit
1397b2a2
authored
Aug 10, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改计划任务
parent
b9699139
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
QuarzHelper.cs
Edu.EducationCore/Helper/QuarzHelper.cs
+1
-1
Program.cs
Edu.EducationCore/Program.cs
+10
-10
No files found.
Edu.EducationCore/Helper/QuarzHelper.cs
View file @
1397b2a2
...
@@ -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"
}
...
...
Edu.EducationCore/Program.cs
View file @
1397b2a2
...
@@ -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();
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment