mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="ApplicationFileParser.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
/*
|
|
* Implements the ASP.NET template parser
|
|
*
|
|
* Copyright (c) 1998 Microsoft Corporation
|
|
*/
|
|
|
|
namespace System.Web.UI {
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.IO;
|
|
using System.Web.Util;
|
|
using System.Web.Compilation;
|
|
using Debug=System.Web.Util.Debug;
|
|
|
|
|
|
/*
|
|
* Parser for global.asax files
|
|
*/
|
|
internal sealed class ApplicationFileParser : TemplateParser {
|
|
|
|
internal ApplicationFileParser() {}
|
|
|
|
internal override Type DefaultBaseType { get { return PageParser.DefaultApplicationBaseType ?? typeof(System.Web.HttpApplication); } }
|
|
|
|
internal override bool FApplicationFile { get { return true; } }
|
|
|
|
internal const string defaultDirectiveName = "application";
|
|
internal override string DefaultDirectiveName {
|
|
get { return defaultDirectiveName; }
|
|
}
|
|
|
|
internal override void CheckObjectTagScope(ref ObjectTagScope scope) {
|
|
|
|
// Map the default scope to AppInstance
|
|
if (scope == ObjectTagScope.Default)
|
|
scope = ObjectTagScope.AppInstance;
|
|
|
|
// Check for invalid scopes
|
|
if (scope == ObjectTagScope.Page) {
|
|
throw new HttpException(
|
|
SR.GetString(SR.Page_scope_in_global_asax));
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|