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
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="RuntimeConfigLKG.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
using System.Collections;
|
|
using System.Configuration;
|
|
using System.Configuration.Internal;
|
|
using System.Security.Permissions;
|
|
using System.Web;
|
|
using System.Web.Util;
|
|
using System.Web.Hosting;
|
|
using System.Web.Configuration;
|
|
using ClassHttpRuntime=System.Web.HttpRuntime;
|
|
using ClassHostingEnvironment=System.Web.Hosting.HostingEnvironment;
|
|
|
|
namespace System.Web.Configuration {
|
|
|
|
//
|
|
// RuntimeConfig class that implements LKG functionality.
|
|
//
|
|
internal class RuntimeConfigLKG : RuntimeConfig {
|
|
|
|
//
|
|
// Note that if configRecord is null, we are the LKG for the ClientRuntimeConfig.
|
|
//
|
|
internal RuntimeConfigLKG(IInternalConfigRecord configRecord) : base(configRecord, true) {}
|
|
|
|
[ConfigurationPermission(SecurityAction.Assert, Unrestricted=true)]
|
|
protected override object GetSectionObject(string sectionName) {
|
|
if (_configRecord != null) {
|
|
return _configRecord.GetLkgSection(sectionName);
|
|
}
|
|
else {
|
|
try {
|
|
return ConfigurationManager.GetSection(sectionName);
|
|
}
|
|
catch {
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|