Re: [Ikvm-developers] Register a shutdown Hook in WCF
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2017-04-14 05:33:30
|
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:vb...@in...] > Sent: Thursday, April 13, 2017 15:25 > To: IKVM List <ikv...@li...> > 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 > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers |