web services - Startup time of webservice -
i have wcf web service running in iis. lot of load work in service constructor
namespace wcfservice_myservice { [servicebehavior(instancecontextmode = instancecontextmode.single)] public class service1 : iservice1 { public service1() { trace("service starting"); ...load work... trace("service ready accept requests"); } ... more functions... } }
but service restarted when hasn't finish load yet. have log files , see service restarted. suppose because takes 7 seconds start , suppose because iis thinks not responding creates new one. correct?
can tell iis wait longer?
i don't want have thread load because don't want accept requests until loaded. , told loading process long never more 10 seconds.
any ideas? thanks
Comments
Post a Comment