2

I have a couple processes running in the background that I'd like to gracefully stop when application is terminating due to an app pool recycle. Does anyone know how to handle this gracefully?

I am looking for something similar to Application_End in the older versions of ASP.NET.

Erik Funkenbusch
  • 92,674
  • 28
  • 195
  • 291
opletayev
  • 51
  • 2
  • Possible duplicate of [Is there Application\_End from Global.asax in Owin?](http://stackoverflow.com/questions/27444924/is-there-application-end-from-global-asax-in-owin) – Stafford Williams Nov 12 '15 at 08:52
  • 1
    As of today, there's a more up-to-date Q&A here http://stackoverflow.com/questions/35257287/kestrel-shutdown-function-in-startup-cs-in-asp-net-core – superjos Jul 15 '16 at 13:47

0 Answers0