Skip to content

Commit

Permalink
测试
Browse files Browse the repository at this point in the history
  • Loading branch information
maikebing committed Apr 27, 2022
1 parent cfc65e2 commit f4418b0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions sample2/Jobs/HelloJobAuto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace SilkierQuartz.Example.Jobs
{

[SilkierQuartz(5, "this e sq test","_hellojobauto")]
public class HelloJobAuto : IJob
{
Expand All @@ -18,5 +18,15 @@ public Task Execute(IJobExecutionContext context)
}
}


[DisallowConcurrentExecution]
[SilkierQuartz(5, 0, 0, Desciption = "自动下载欢迎信息")]
public class HelloJobAuto1 : IJob
{
public Task Execute(IJobExecutionContext context)
{
Console.WriteLine($"Hello {DateTime.Now}");
return Task.CompletedTask;
}
}

}

0 comments on commit f4418b0

Please sign in to comment.