/**\r
* Namespace: System.Web\r
* Class: HttpRuntime\r
- * \r
+ *\r
* Author: Gaurav Vaish\r
* Contact: <gvaish@iitk.ac.in>\r
* Status: ?%\r
- * \r
+ *\r
* (C) Gaurav Vaish (2001)\r
*/\r
\r
private static bool initialized;\r
private static string installDir;\r
private static HttpRuntime runtime;\r
- \r
+\r
/// <summary>\r
/// Loading of ISAPI\r
/// </summary>\r
private static bool isapiLoaded;\r
- \r
+\r
private Cache cache;\r
- \r
+\r
// Security permission helper objects\r
private static IStackWalk appPathDiscoveryStackWalk;\r
private static IStackWalk ctrlPrincipalStackWalk;\r
private static IStackWalk unmgdCodeStackWalk;\r
private static IStackWalk unrestrictedStackWalk;\r
private static IStackWalk reflectionStackWalk;\r
- \r
+\r
private string appDomainAppPath;\r
private string appDomainAppVirtualPath;\r
- \r
+\r
private FileChangesMonitor fcm;\r
- \r
+\r
private Exception initErrorException;\r
- \r
+\r
static HttpRuntime()\r
{\r
autogenKeys = new byte[88];\r
sensitiveInfoStackWalk = null;\r
unmgdCodeStackWalk = null;\r
unrestrictedStackWalk = null;\r
- \r
+\r
if(!DesignTimeParseData.InDesigner)\r
Initialize();\r
runtime = new HttpRuntime();\r
if(!DesignTimeParseData.InDesigner)\r
runtime.Init();\r
}\r
- \r
+\r
//FIXME: IIS specific code. Need information on what to do for Apache?\r
internal static void Initialize()\r
{\r
initialized = true;\r
}\r
}\r
- \r
+\r
[MonoTODO("Init")]\r
private void Init()\r
{\r
}\r
}\r
\r
- [MonoTODO("FormatResourceString(string, string, string)")]\r
- internal static string FormatResourceString(string key, string arg0, string type)\r
+ internal static string FormatResourceString(string key)\r
{\r
- throw new NotImplementedException();\r
+ return GetResourceString(key);\r
}\r
- \r
+\r
internal static string FormatResourceString(string key, string arg0)\r
{\r
string format = GetResourceString(key);\r
return null;\r
return String.Format(format, arg0);\r
}\r
- \r
- internal static string FormatResourceString(string key)\r
+\r
+ [MonoTODO("FormatResourceString(string, string, string)")]\r
+ internal static string FormatResourceString(string key, string arg0, string type)\r
{\r
- return GetResourceString(key);\r
+ // String.Format(string, object, object);\r
+ throw new NotImplementedException();\r
+ }\r
+\r
+ [MonoTODO("FormatResourceString(string, string, string, string)")]\r
+ internal static string FormatResourceString(string key, string arg0, string arg1, string arg2)\r
+ {\r
+ // String.Format(string, object, object, object);\r
+ throw new NotImplementedException();\r
}\r
- \r
+\r
+ [MonoTODO("FormatResourceString(string, string[]")]\r
+ internal static string FormatResourceString(string key, string[] args)\r
+ {\r
+ // String.Format(string, object[]);\r
+ throw new NotImplementedException();\r
+ }\r
+\r
private static string GetResourceString(string key)\r
{\r
return runtime.GetResourceStringFromResourceManager(key);\r
}\r
- \r
+\r
[MonoTODO("GetResourceStringFromResourceManager(string)")]\r
private string GetResourceStringFromResourceManager(string key)\r
{\r
throw new NotImplementedException();\r
}\r
- \r
+\r
public static Cache Cache\r
{\r
get\r
return runtime.cache;\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static string AppDomainAppId\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static string AppDomainAppPath\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static string AppDomainAppVirtualPath\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static string AppDomainId\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static string AspInstallDirectory\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static string BinDirectory\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static string ClrInstallDirectory\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static string CodegenDir\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static bool IsOnUNCShare\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static string MachineConfigurationDirectory\r
{\r
throw new NotImplementedException();\r
}\r
}\r
- \r
+\r
[MonoTODO]\r
public static void Close()\r
{\r
throw new NotImplementedException();\r
}\r
- \r
+\r
internal static IStackWalk AppPathDiscovery\r
{\r
get\r
return appPathDiscoveryStackWalk;\r
}\r
}\r
- \r
+\r
internal static IStackWalk ControlPrincipal\r
{\r
get\r
return ctrlPrincipalStackWalk;\r
}\r
}\r
- \r
+\r
internal static IStackWalk Reflection\r
{\r
get\r
return reflectionStackWalk;\r
}\r
}\r
- \r
+\r
internal static IStackWalk SensitiveInformation\r
{\r
get\r
return sensitiveInfoStackWalk;\r
}\r
}\r
- \r
+\r
internal static IStackWalk UnmanagedCode\r
{\r
get\r
return unmgdCodeStackWalk;\r
}\r
}\r
- \r
+\r
internal static IStackWalk Unrestricted\r
{\r
get\r
return unrestrictedStackWalk;\r
}\r
}\r
- \r
+\r
internal static IStackWalk FileReadAccess(string file)\r
{\r
return new FileIOPermission(FileIOPermissionAccess.Read, file);\r
}\r
- \r
+\r
internal static IStackWalk PathDiscoveryAccess(string path)\r
{\r
return new FileIOPermission(FileIOPermissionAccess.PathDiscovery, path);\r