2010-02-18 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Thu, 18 Feb 2010 13:29:56 +0000 (13:29 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Thu, 18 Feb 2010 13:29:56 +0000 (13:29 -0000)
commit85db63d06f944aa295eeb3774b5c6ddd786b5fa8
treee695bc926ee0b846d1a7aa29bbfce70c6cb745d3
parentd315ae24354aa09548dce278b96e2a85f7a54c08
2010-02-18  Marek Habersack  <mhabersack@novell.com>

* HostingEnvironment.cs: removed SetHostingId and added internal
setters to the SiteName and IsHosted properties.

* ApplicationManager.cs: CreateHost doesn't have to call set
HostingEnvironment.IsHosted, it is done in
ApplicationHost.CreateApplicationHost.

* ApplicationHost.cs: set the ".appId" item in the new appdomain's
data, so that HttpRuntime.AppDomainAppId returns a non-null
value.
Set HostingEnvironment.{IsHosted, SiteName} in the new appdomain
instead of the original one.

All of the above fix bug #578880

2010-02-18  Marek Habersack  <mhabersack@novell.com>

* HostingEnvironmentTest.cs: added a test for HostEnvironment
property values both in hosted and non-hosted environments. Patch
contributed by Tiaan Geldenhuys <tagdev@gmail.com>, thanks!

svn path=/trunk/mcs/; revision=151983
mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs
mcs/class/System.Web/System.Web.Hosting/ApplicationManager.cs
mcs/class/System.Web/System.Web.Hosting/ChangeLog
mcs/class/System.Web/System.Web.Hosting/HostingEnvironment.cs
mcs/class/System.Web/Test/System.Web.Hosting/ChangeLog
mcs/class/System.Web/Test/System.Web.Hosting/HostingEnvironmentTest.cs