Gives the System.Web.Hosting.HostingEnvironment object an infinite lifetime by preventing a lease from being created.
![]()
Always null.
This method overrides the MarshalByRefObject.InitializeLifetimeService method in its base class. It always returns null and prevents a lease from being created that would limit the System.Web.Hosting.HostingEnvironment object's lifetime.