2001-12-19 Gaurav Vaish <gvaish@iitk.ac.in>
[mono.git] / mcs / class / System.Web / System.Web / HttpRuntime.cs
index e1df27aa701eace4dee5fa4c46f5232fad9e7f65..0b618565215ccaea1d03e85c15d976ea9a62912a 100644 (file)
@@ -1,10 +1,10 @@
 /**\r
- * Namespace: System.Web.UI.Utils\r
+ * Namespace: System.Web\r
  * Class:     HttpRuntime\r
  * \r
  * Author:  Gaurav Vaish\r
  * Contact: <gvaish@iitk.ac.in>\r
- * Status:  100%\r
+ * Status:  ?%\r
  * \r
  * (C) Gaurav Vaish (2001)\r
  */\r
@@ -27,6 +27,8 @@ namespace System.Web
                /// </summary>\r
                private static bool        isapiLoaded;\r
                \r
+               private string appDomainAppVirtualPath;\r
+               \r
                static HttpRuntime()\r
                {\r
                        autogenKeys = new byte[88];\r
@@ -35,7 +37,7 @@ namespace System.Web
                        if(!DesignTimeParseData.InDesigner)\r
                                Initialize();\r
                        runtime     = new HttpRuntime();\r
-                       if(!DesignerTimeParseData.InDesigner)\r
+                       if(!DesignTimeParseData.InDesigner)\r
                                runtime.Init();\r
                }\r
                \r
@@ -48,5 +50,36 @@ namespace System.Web
                {\r
                        throw new NotImplementedException();\r
                }\r
+               \r
+               internal static string FormatResourceString(string key, string arg0)\r
+               {\r
+                       string format = GetResourceString(key);\r
+                       if(format==null)\r
+                               return null;\r
+                       return String.Format(format, arg0);\r
+               }\r
+               \r
+               internal static string FormatResourceString(string key)\r
+               {\r
+                       return GetResourceString(key);\r
+               }\r
+               \r
+               private static string GetResourceString(string key)\r
+               {\r
+                       return runtime.GetResourceStringFromResourceManager(key);\r
+               }\r
+               \r
+               private string GetResourceStringFromResourceManager(string key)\r
+               {\r
+                       throw new NotImplementedException();\r
+               }\r
+               \r
+               public static string AppDomainAppVirtualPath\r
+               {\r
+                       get\r
+                       {\r
+                               return runtime.appDomainAppVirtualPath;\r
+                       }\r
+               }\r
        }\r
 }\r