diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2009-07-09 21:11:30 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2009-07-09 21:11:30 +0400 |
commit | 2f88b4a70126dc45385d22d3f3a8538a0793e4a3 (patch) | |
tree | a648ff0d39eb2cb476b6c87cb31d9f470469f1fc /mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs | |
parent | 3d7ff5cc8411dae9ebc068597aedfbd9ba7a0b83 (diff) |
2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
* SimpleWorkerRequest.cs: store the root web configuration path in a
static variable.
svn path=/trunk/mcs/; revision=137634
Diffstat (limited to 'mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs index f58209bcbfc..05c8ba5046f 100644 --- a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs +++ b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs @@ -57,7 +57,14 @@ namespace System.Web.Hosting { // computed string raw_url; - + + static readonly string root_web_config_path; + + static SimpleWorkerRequest () + { + root_web_config_path = WebConfigurationManager.OpenWebConfiguration ("~").FilePath; + } + // // Constructor used when the target application domain // was created with ApplicationHost.CreateApplicationHost @@ -129,7 +136,7 @@ namespace System.Web.Hosting { } #if NET_2_0 public override string RootWebConfigPath { - get { return WebConfigurationManager.OpenWebConfiguration ("~").FilePath; } + get { return root_web_config_path; } } #endif |