唐召明
authored
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using Quartz;
namespace HH.Mes.Tool.Jobs
{
internal class TestJob : IJob
{
public Task Execute(IJobExecutionContext context)
{
try
{
Console.WriteLine("Hello Quartz.Net");
}
catch (Exception ex)
{
Console.WriteLine($"{nameof(TestJob)}异常:{ex.Message}");
}
return Task.CompletedTask;
}
}
}
|