Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / AppLevelCompilationSectionCache.cs / 1 / AppLevelCompilationSectionCache.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Configuration; using System.Security; using System.Security.Permissions; using System.Web.Configuration; // The compilation section can be defined below the application level, but ScriptManager only considers the // application-level debug setting. internal sealed class AppLevelCompilationSectionCache : ICompilationSection { private static readonly AppLevelCompilationSectionCache _instance = new AppLevelCompilationSectionCache(); // Value is cached statically, because AppLevelCompilationSectionCache is a Singleton. private bool? _debug; private AppLevelCompilationSectionCache() { } public static AppLevelCompilationSectionCache Instance { get { return _instance; } } public bool Debug { get { if (_debug == null) { _debug = GetDebugFromConfig(); } return _debug.Value; } } [ ConfigurationPermission(SecurityAction.Assert, Unrestricted = true), SecurityCritical(), SecurityTreatAsSafe(), ] private static bool GetDebugFromConfig() { CompilationSection section = (CompilationSection)WebConfigurationManager.GetWebApplicationSection("system.web/compilation"); return section.Debug; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EdmToObjectNamespaceMap.cs
- Decorator.cs
- CalendarDay.cs
- SafeCryptoHandles.cs
- ResourceDisplayNameAttribute.cs
- ArraySegment.cs
- SqlNode.cs
- ReflectionHelper.cs
- wmiprovider.cs
- AsyncOperation.cs
- ConfigXmlElement.cs
- MSG.cs
- WorkflowClientDeliverMessageWrapper.cs
- BitmapEffectGeneralTransform.cs
- CultureInfo.cs
- ValueTable.cs
- ByteArrayHelperWithString.cs
- AssemblyResourceLoader.cs
- MultiTouchSystemGestureLogic.cs
- ZipIOModeEnforcingStream.cs
- DataViewManagerListItemTypeDescriptor.cs
- WinInetCache.cs
- ControlCachePolicy.cs
- Attachment.cs
- DragDrop.cs
- TreeBuilder.cs
- PaintEvent.cs
- odbcmetadatacollectionnames.cs
- ToolboxComponentsCreatedEventArgs.cs
- BinaryMethodMessage.cs
- XmlTextAttribute.cs
- Internal.cs
- XmlDataLoader.cs
- SystemMulticastIPAddressInformation.cs
- RemotingException.cs
- BaseAppDomainProtocolHandler.cs
- ExpressionPrefixAttribute.cs
- ContentPresenter.cs
- UserControlDocumentDesigner.cs
- DataGridViewColumnEventArgs.cs
- SiteIdentityPermission.cs
- TableRowGroup.cs
- MenuItemAutomationPeer.cs
- SiteMapHierarchicalDataSourceView.cs
- Merger.cs
- ShimAsPublicXamlType.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- Point3D.cs
- AttachedPropertyBrowsableAttribute.cs
- IndexingContentUnit.cs
- KeyPressEvent.cs
- ThreadInterruptedException.cs
- WindowsGraphics2.cs
- MatrixStack.cs
- EqualityComparer.cs
- MeasureData.cs
- graph.cs
- BaseDataBoundControlDesigner.cs
- SqlServices.cs
- User.cs
- MarshalByRefObject.cs
- MSAAWinEventWrap.cs
- WaitingCursor.cs
- SessionEndingEventArgs.cs
- DebugInfoGenerator.cs
- ConfigUtil.cs
- ProviderUtil.cs
- DesignerActionMethodItem.cs
- AssemblyName.cs
- DbConnectionStringCommon.cs
- GeneralTransform.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- PrivilegeNotHeldException.cs
- ScrollViewer.cs
- configsystem.cs
- NameValueSectionHandler.cs
- MouseGestureValueSerializer.cs
- DataMemberConverter.cs
- ImportStoreException.cs
- GenericAuthenticationEventArgs.cs
- Decoder.cs
- ResourceDefaultValueAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- ZipIOModeEnforcingStream.cs
- XmlDataImplementation.cs
- CollectionView.cs
- StorageEntityContainerMapping.cs
- PointLightBase.cs
- VariableDesigner.xaml.cs
- TextTreeRootTextBlock.cs
- ThreadExceptionDialog.cs
- XmlObjectSerializerReadContextComplexJson.cs
- MediaContext.cs
- datacache.cs
- Menu.cs
- HashSetEqualityComparer.cs
- SchemaType.cs
- InputLangChangeEvent.cs
- WinEventHandler.cs
- ExtensionWindowResizeGrip.cs