davidebbo / WebActivator

Apache License 2.0
242 stars 49 forks source link

WebActivatorEx.ApplicationShutdownMethod doesn't get invoked #34

Open kiran512 opened 4 years ago

kiran512 commented 4 years ago

I have an application and configured PreApplicationStartMethod and ApplicationShutdownMethod , the PreApplicationStartMethod get invoked when I am starting the application but the ApplicationShutdownMethod doesn't get invoked when I stop the application(I am trying to run the application from visual studio in debug mode, I tried deploying the same in azure app service also , it doesn't work)

davidebbo commented 4 years ago

Is this an ASP.NET app or something else? See https://github.com/davidebbo/WebActivator/blob/8a21247a5bdc61af3077bafceac602a9cb236875/WebActivator/ActivationManager.cs#L49-L62 for the logic used.