mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* System.Web.dll.sources: removed 2 unused files in system.Web.Utils. * System.Web/HttpRequest.cs: * System.Web/HttpResponse.cs: * System.Web/HttpRuntime.cs: * System.Web/HttpServerUtility.cs: * System.Web/HttpUnhandledException.cs: * System.Web.Compilation/CachingCompiler.cs: * System.Web.Configuration/AuthenticationConfigHandler.cs: * System.Web.Configuration/CompilationConfiguration.cs: * System.Web.Configuration/MachineKeyConfigHandler.cs: * System.Web.UI/Page.cs: * System.Web.UI.WebControls/Calendar.cs: * System.Web.UI.WebControls/FontInfo.cs: * System.Web.UI.WebControls/WebControl.cs: removed TODOs. * System.Web.UI/ApplicationFileParser.cs: add file dependencies. * System.Web.UI/Control.cs: removed TODOs and some ^M. * System.Web.Util/ApacheVersionInfo.cs: removed. * System.Web.Util/IISVersionInfo.cs: removed. svn path=/trunk/mcs/; revision=26947
74 lines
1.8 KiB
C#
74 lines
1.8 KiB
C#
//
|
|
// System.Web.UI.ApplicationFileParser.cs
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2002,2003 Ximian, Inc (http://www.ximian.com)
|
|
// (c) 2004 Novell, Inc. (http://www.novell.com)
|
|
//
|
|
using System;
|
|
using System.Collections;
|
|
using System.Web;
|
|
using System.Web.Compilation;
|
|
|
|
namespace System.Web.UI
|
|
{
|
|
sealed class ApplicationFileParser : TemplateParser
|
|
{
|
|
static ArrayList dependencies;
|
|
|
|
public ApplicationFileParser (string fname, HttpContext context)
|
|
{
|
|
InputFile = fname;
|
|
Context = context;
|
|
}
|
|
|
|
protected override Type CompileIntoType ()
|
|
{
|
|
return GlobalAsaxCompiler.CompileApplicationType (this);
|
|
}
|
|
|
|
internal static Type GetCompiledApplicationType (string inputFile, HttpContext context)
|
|
{
|
|
ApplicationFileParser parser = new ApplicationFileParser (inputFile, context);
|
|
AspGenerator generator = new AspGenerator (parser);
|
|
Type type = generator.GetCompiledType ();
|
|
dependencies = parser.Dependencies;
|
|
return type;
|
|
}
|
|
|
|
internal override void AddDirective (string directive, Hashtable atts)
|
|
{
|
|
if (String.Compare (directive, "application", true) != 0 &&
|
|
String.Compare (directive, "Import", true) != 0 &&
|
|
String.Compare (directive, "Assembly", true) != 0)
|
|
ThrowParseException ("Invalid directive: " + directive);
|
|
|
|
base.AddDirective (directive, atts);
|
|
}
|
|
|
|
internal static ArrayList FileDependencies {
|
|
get { return dependencies; }
|
|
}
|
|
|
|
internal override Type DefaultBaseType {
|
|
get { return typeof (HttpApplication); }
|
|
}
|
|
|
|
internal override string DefaultBaseTypeName {
|
|
get { return "System.Web.HttpApplication"; }
|
|
}
|
|
|
|
internal override string DefaultDirectiveName {
|
|
get { return "application"; }
|
|
}
|
|
|
|
internal override string BaseVirtualDir {
|
|
get { return Context.Request.ApplicationPath; }
|
|
}
|
|
}
|
|
|
|
}
|
|
|