How to run code before the aspnet core 5.0 kestrel server shuts down? Used to work in 3.1

后端 未结 0 742
一个人的身影
一个人的身影 2020-12-29 16:26

In dotnet 3.1, I had the code below, and everything worked fine. However, in 5.0, I think the stopping order has changed, so only the OnStarted function is properly called,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题