Author: wrowe Date: Sat Jan 1 18:34:13 2005 New Revision: 123872 URL: http://svn.apache.org/viewcvs?view=rev&rev=123872 Log:
Theory: NULL may not be valid for a lifetime (or may not have an explicit meaning.) Borrow the same logic as the Host object for the HostFactory. Modified: httpd/mod_aspdotnet/trunk/Apache.Web/HostFactory.h Modified: httpd/mod_aspdotnet/trunk/Apache.Web/HostFactory.h Url: http://svn.apache.org/viewcvs/httpd/mod_aspdotnet/trunk/Apache.Web/HostFactory.h?view=diff&rev=123872&p1=httpd/mod_aspdotnet/trunk/Apache.Web/HostFactory.h&r1=123871&p2=httpd/mod_aspdotnet/trunk/Apache.Web/HostFactory.h&r2=123872 ============================================================================== --- httpd/mod_aspdotnet/trunk/Apache.Web/HostFactory.h (original) +++ httpd/mod_aspdotnet/trunk/Apache.Web/HostFactory.h Sat Jan 1 18:34:13 2005 @@ -63,8 +63,14 @@ virtual Object* InitializeLifetimeService() { - // Indestructable, for good reason - return NULL; + ILease *lease + = __try_cast<ILease*>(MarshalByRefObject::InitializeLifetimeService()); + if (lease->CurrentState == System::Runtime::Remoting::Lifetime::LeaseState::Initial) { + lease->InitialLeaseTime = TimeSpan::FromDays(366); + lease->SponsorshipTimeout = TimeSpan::FromMinutes(2); + lease->RenewOnCallTime = TimeSpan::FromMinutes(1); + } + return lease; } // Returns E_FAIL if HostFactory cannot be configured; path is a noop argument