This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
IApplicationLifetime ApplicationStopped events not getting called when stopping/restarting Azure web app #846
Closed
Description
We've noticed the ApplicationStopped event doesn't seem to get called if you stop or restart a dotnetcore Azure web app (full fat .net 4.6 framework).
Stopping our site in IIS Express doesn't work either (using the system tray stop site option) although the Kestrel server does appear to work (assuming you stop it using ctrl+c).
We did come across the ApplicationStopping issue (#812) which is why we are using ApplicationStopped but it doesn't seem to work. Would I be correct in assuming that selecting stop or restart from the Azure portal is not considered a graceful shutdown?