mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* System.Web.dll.sources: added WebHandlerParser.cs * System.Web.Compilation/Directive.cs: support @WebHandler. * System.Web.UI/SimpleHandlerFactory.cs: implemented GetHandler. * System.Web.UI/WebHandlerParser.cs: new file that parses .ashx files. svn path=/trunk/mcs/; revision=16971
37 lines
825 B
C#
37 lines
825 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);
|
|
// WebServiceCompiler also does this job.
|
|
return WebServiceCompiler.CompileIntoType (parser);
|
|
}
|
|
|
|
protected override string DefaultDirectiveName {
|
|
get {
|
|
return "webhandler";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|