ApplicationStopping event is not triggered for .net core app running in cloud foundry.
But if I run the same app in local with DOTNET run command, the applicationStopping event is called when shutdown the app with CTRL+C.
What is the right way for .net core app to shut down safely in cloud foundry?