Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

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