Files
mono/mcs/class/System.Web/System.Web.UI/WebHandlerParser.cs
T
Gonzalo Paniagua Javier 21c46d96a3 2003-08-01 Gonzalo Paniagua Javier <[email protected]>
* 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
2003-08-01 01:09:32 +00:00

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";
}
}
}
}