You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
45
external/referencesource/System.Web/Configuration/RuntimeConfigLKG.cs
vendored
Normal file
45
external/referencesource/System.Web/Configuration/RuntimeConfigLKG.cs
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user