Author: mhabersack
Date: 2006-11-08 08:58:24 -0500 (Wed, 08 Nov 2006)
New Revision: 67518
Modified:
trunk/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs
trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
Log:
GetType and GetVirtualPathDependencies implementation for BuildManager
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs
2006-11-08 13:43:06 UTC (rev 67517)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs
2006-11-08 13:58:24 UTC (rev 67518)
@@ -163,23 +163,40 @@
return provider.GetGeneratedType (results);
}
- // The 3 GetType() overloads work on the global.asax,
App_GlobalResources, App_WebReferences or App_Browsers
- [MonoTODO]
+ // The 2 GetType() overloads work on the global.asax,
App_GlobalResources, App_WebReferences or App_Browsers
public static Type GetType (string typeName, bool throwOnError)
{
- throw new NotImplementedException ();
+ return GetType (typeName, throwOnError, false);
}
- [MonoTODO]
public static Type GetType (string typeName, bool throwOnError,
bool ignoreCase)
{
- throw new NotImplementedException ();
+ Type ret = null;
+ try {
+ foreach (Assembly asm in TopLevel_Assemblies) {
+ ret = asm.GetType (typeName,
throwOnError, ignoreCase);
+ if (ret != null)
+ break;
+ }
+ } catch (Exception ex) {
+ throw new HttpException ("Failed to find the
specified type.", ex);
+ }
+ return ret;
}
- [MonoTODO]
+ internal static ICollection GetVirtualPathDependencies (string
virtualPath, BuildProvider bprovider)
+ {
+ BuildProvider provider = bprovider;
+ if (provider == null)
+ provider = GetBuildProviderForPath
(virtualPath, false);
+ if (provider == null)
+ return null;
+ return provider.VirtualPathDependencies;
+ }
+
public static ICollection GetVirtualPathDependencies (string
virtualPath)
{
- throw new NotImplementedException ();
+ return GetVirtualPathDependencies (virtualPath, null);
}
// Assemblies built from the App_Code directory
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2006-11-08
13:43:06 UTC (rev 67517)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2006-11-08
13:58:24 UTC (rev 67518)
@@ -12,6 +12,8 @@
* BuildManager.cs: Implement the CodeAssemblies property.
Added an internal TopLevelTypes property to be used in the custom
GetType methods. Implemented the GetCompiledCustomString method.
+ Implemented the GetType method overloads. Implemented the
+ GetVirtualPathDependencies method.
* BaseCompiler.cs: Reference the assemblies from App_Code, if any
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches