mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* System.Web.Compilation/BaseCompiler.cs: try getting the Type from the cache before doing the real work. Remove temporary files right after successful compilation. * System.Web.Compilation/CachingCompiler.cs: added GetTypeFromCache. * System.Web.Compilation/UserControlCompiler.cs: nothing interesting. * System.Web.Compilation/WebServiceCompiler.cs: try getting the Type from the cache before doing anything else. Remove temp files on sucessful compilation. * System.Web.UI/SimpleWebHandlerParser.cs: implemented GetCompiledTypeFromCache. When we read the default directive, check the cache for the Type and if present, don't keep reading and store the type found. * System.Web.UI/WebHandlerParser.cs: * System.Web.UI/WebServiceParser.cs: try GetCompiledTypeFromCache before actually compiling. svn path=/trunk/mcs/; revision=29652
40 lines
870 B
C#
40 lines
870 B
C#
//
|
|
// System.Web.UI.WebHandlerParser
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2003 Ximian, Inc (http://www.ximian.com)
|
|
//
|
|
|
|
using System.Web;
|
|
using System.Web.Compilation;
|
|
|
|
namespace System.Web.UI
|
|
{
|
|
class WebHandlerParser : SimpleWebHandlerParser
|
|
{
|
|
private WebHandlerParser (HttpContext context, string virtualPath, string physicalPath)
|
|
: base (context, virtualPath, physicalPath)
|
|
{
|
|
}
|
|
|
|
public static Type GetCompiledType (HttpContext context, string virtualPath, string physicalPath)
|
|
{
|
|
WebHandlerParser parser = new WebHandlerParser (context, virtualPath, physicalPath);
|
|
Type type = parser.GetCompiledTypeFromCache ();
|
|
if (type != null)
|
|
return type;
|
|
|
|
return WebServiceCompiler.CompileIntoType (parser);
|
|
}
|
|
|
|
protected override string DefaultDirectiveName {
|
|
get {
|
|
return "webhandler";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|