update ZR.Tasks/TaskScheduler/Job_SyncTest.cs.
增加带返回值的Job Demo Signed-off-by: xbzhu <5430389+xbzhu@user.noreply.gitee.com>
This commit is contained in:
parent
18702eaa38
commit
b01335a125
@ -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 "成功";
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user