Skip to content
代码片段 群组 项目
未验证 提交 60ee97bf 编辑于 作者: github-actions[bot]'s avatar github-actions[bot] 提交者: GitHub
浏览文件

[release/6.0] Run user defined hosted services before the server starts. (#36133)


* Run user defined hosted services before the server starts. - The generic web hosted service is added before any user code runs, as a result its impossible to write a hosted services that run before server startup. This behavior differs from what happens when you use the Startup class today. We call ConfigureServices then we add the IHostedService implementation that starts the server. This change mimics that behavior by adding the initial set of hosted services after your code runs. - Added a test

* Apply suggestions from code review

Co-authored-by: default avatarStephen Halter <halter73@gmail.com>

Co-authored-by: default avatarDavid Fowler <davidfowl@gmail.com>
Co-authored-by: default avatarStephen Halter <halter73@gmail.com>
上级 bdae1201
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册