.net core 基于 IHostedService 实现定时任务

.net core 基于 IHostedService 实现定时任务 Intro 从 .net core 2.0 开始,开始引入 IHostedService,可以通过 IHostedService 来实现后台任务,但是只能在 WebHost 的基础上使用。从 .net core 2.1 开始微软引入通用主机( GenericHost),使得我们可以在不使用 Web 的情况下,也可以使用 IHos
相关文章
相关标签/搜索