Re: Register a shutdown Hook in WCF
Jeroen Frijters <[email protected]> Fri, 14 Apr 2017 04:59:48 +0000
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <AM4PR08MB262780354644C597A2F669AAA2050@AM4PR08MB2627.eurprd08.prod.outlook.com> |
Hi Volker, If at all possible, it would be better to avoid shutdown hooks, but calling Shutdown.shutdown() via reflection is a good workaround. It might be possible to improve this on the IKVM side by also trying to hook the AppDomain.DomainUnload event. My guess is that the WCF service runs in a secondary AppDomain. Regards, Jeroen > -----Original Message----- > From: Volker Berlin [mailto:[email protected]] > Sent: Thursday, April 13, 2017 15:25 > To: IKVM List <[email protected]> > Subject: [Ikvm-developers] Register a shutdown Hook in WCF > > Hi Jeroen, > > It look like that an exit of an WCF service does not call the shutdown > hooks. What is the best what I can call on shutdown? Should I call > java.lang.Shutdown.shutdown() via reflection or is there a simpler > solution? > > http://stackoverflow.com/questions/11769673/performing-action-before- > wcf-service-is-shutdown > > Volker > > > > > ------------------------------------------------------------------------ > ------ > Check out the vibrant tech community on one of the world's most engaging > tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Ikvm-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ikvm-developers ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot