update ZR.Tasks/TaskScheduler/Job_SyncTest.cs.

增加带返回值的Job Demo

Signed-off-by: xbzhu <5430389+xbzhu@user.noreply.gitee.com>
This commit is contained in:
xbzhu 2023-12-06 04:04:23 +00:00 committed by Gitee
parent 18702eaa38
commit b01335a125
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,4 +1,4 @@
using Infrastructure.Attribute; using Infrastructure.Attribute;
using Quartz; using Quartz;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -25,5 +25,23 @@ namespace ZR.Tasks.TaskScheduler
System.Console.WriteLine("job test"); System.Console.WriteLine("job test");
} }
//public async Task Execute(IJobExecutionContext context)
//{
// await ExecuteJob(context, async () =>
// {
// return await Run(context);
// });
//}
//public async Task<string> Run()
//{
// await Task.Delay(1);
//TODO 业务逻辑
// System.Console.WriteLine("job test");
// return "成功";
//}
} }
} }