blob: 0430d7e0cc7c577c28e85566e25d36e61696a743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
//
// System.Web.UI.ApplicationfileParser
//
// Authors:
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
//
// (C) 2002,2003 Ximian, Inc (http://www.ximian.com)
//
using System;
using System.Web;
using System.Web.Compilation;
namespace System.Web.UI
{
sealed class ApplicationFileParser : TemplateParser
{
public ApplicationFileParser (string fname)
{
InputFile = fname;
}
protected override Type CompileIntoType ()
{
GlobalAsaxCompiler compiler = new GlobalAsaxCompiler (this);
return compiler.GetCompiledType ();
}
internal static Type GetCompiledApplicationType (string inputFile, HttpContext context)
{
ApplicationFileParser parser = new ApplicationFileParser (inputFile);
parser.Context = context;
return parser.CompileIntoType ();
}
protected override Type DefaultBaseType {
get { return typeof (HttpApplication); }
}
protected internal override string DefaultDirectiveName {
get { return "application"; }
}
}
}
|