question

MariusA-0359 avatar image
0 Votes"
MariusA-0359 asked RenaNi-MSFT commented

How do I get the shutdown reason in ASP.NET Core 5?

In older versions of ASP.NET you could use

 HostingEnvironment.ShutdownReason 

to retrieve

 ApplicationShutdownReason 


This no longer works in ASP.NET 5 Core and now I can't figure out how to get the shutdown reason. Thank you!

dotnet-csharpdotnet-aspnet-core-generaldotnet-aspnet-generaldotnet-aspnet-core-blazordotnet-aspnet-core-webapi
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MariusA-0359, I have feedbacked to the Microsoft team in github here: https://github.com/dotnet/docs/issues/26746 . I think you can monitor this issue to see if any new progress.

0 Votes 0 ·

0 Answers