mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 12:31:30 -10:00
* list: added PageHandlerFactory. * System.Web/HttpApplication.cs: * System.Web/HttpApplicationFactory.cs: * System.Web/HttpRequest.cs: * System.Web/HttpRuntime.cs: * System.Web.Compilation/AspElements.cs: * System.Web.Compilation/AspGenerator.cs: * System.Web.Compilation/AspParser.cs: * System.Web.Compilation/PageCompiler.cs: * System.Web.Compilation/TemplateFactory.cs: Modified file. * System.Web.Configuration/HttpCapabilitiesBase.cs: * System.Web.Hosting/SimpleWorkerRequest.cs: * System.Web.UI/PageHandlerFactory.cs: * System.Web.UI/PageParser.cs: * System.Web.UI/TemplateControlParser.cs: we are now able to compile pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest. svn path=/trunk/mcs/; revision=7880
47 lines
875 B
C#
47 lines
875 B
C#
//
|
|
// System.Web.UI.PageParser
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc (http://www.ximian.com)
|
|
//
|
|
using System;
|
|
using System.Web;
|
|
using System.Web.Compilation;
|
|
|
|
namespace System.Web.UI
|
|
{
|
|
public sealed class PageParser : TemplateControlParser
|
|
{
|
|
public static IHttpHandler GetCompiledPageInstance (string virtualPath,
|
|
string inputFile,
|
|
HttpContext context)
|
|
{
|
|
PageParser pp = new PageParser ();
|
|
IHttpHandler h = (IHttpHandler) pp.GetCompiledInstance (virtualPath, inputFile, context);
|
|
return h;
|
|
}
|
|
|
|
protected override Type CompileIntoType ()
|
|
{
|
|
return PageCompiler.CompilePageType (this);
|
|
}
|
|
|
|
protected override Type DefaultBaseType
|
|
{
|
|
get {
|
|
return typeof (Page);
|
|
}
|
|
}
|
|
|
|
protected override string DefaultDirectiveName
|
|
{
|
|
get {
|
|
return "page";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|