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
- Point4DConverter.cs
- ToolStripTextBox.cs
- configsystem.cs
- CustomDictionarySources.cs
- RuntimeConfigLKG.cs
- ResourcePart.cs
- CategoryEditor.cs
- DataGridItemEventArgs.cs
- HttpFileCollection.cs
- NameHandler.cs
- UnsafeNativeMethods.cs
- WmlFormAdapter.cs
- ProcessHost.cs
- RequestStatusBarUpdateEventArgs.cs
- GridViewRowPresenterBase.cs
- IdentifierCollection.cs
- SHA1.cs
- ValidationError.cs
- Calendar.cs
- AssemblyAttributes.cs
- MenuAdapter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- EdmToObjectNamespaceMap.cs
- DefaultTextStoreTextComposition.cs
- SpellerError.cs
- ControlType.cs
- ConfigurationLocationCollection.cs
- ChannelSinkStacks.cs
- SoapIgnoreAttribute.cs
- TextSpan.cs
- SecurityUtils.cs
- FindCriteria11.cs
- WebControl.cs
- MenuItemCollection.cs
- WindowsTab.cs
- UrlUtility.cs
- CharacterBuffer.cs
- XmlSchemaGroup.cs
- Win32SafeHandles.cs
- BaseAppDomainProtocolHandler.cs
- ExpressionPrinter.cs
- ProfileEventArgs.cs
- Command.cs
- ListViewUpdateEventArgs.cs
- HtmlControlPersistable.cs
- ActiveXHelper.cs
- BitmapMetadataBlob.cs
- UidManager.cs
- WebPartEditorApplyVerb.cs
- ClientSettingsSection.cs
- FlowDocumentView.cs
- DelegateSerializationHolder.cs
- Selection.cs
- Terminate.cs
- DataGridViewTextBoxColumn.cs
- JoinCqlBlock.cs
- CompilerLocalReference.cs
- AbstractExpressions.cs
- FormViewInsertEventArgs.cs
- XmlCharType.cs
- XmlNodeReader.cs
- MouseGesture.cs
- RegistrationServices.cs
- SelectQueryOperator.cs
- KeyFrames.cs
- AnnotationComponentChooser.cs
- QueryPageSettingsEventArgs.cs
- TextStore.cs
- XmlILAnnotation.cs
- ColorContext.cs
- ResourceKey.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SafeRightsManagementQueryHandle.cs
- HtmlTableCellCollection.cs
- BinaryFormatter.cs
- SqlException.cs
- ComplexLine.cs
- CharUnicodeInfo.cs
- ButtonRenderer.cs
- InheritanceContextHelper.cs
- InvalidPrinterException.cs
- CreationContext.cs
- MenuStrip.cs
- SafeBitVector32.cs
- cache.cs
- LineServicesCallbacks.cs
- ObjectDataSourceView.cs
- HtmlLabelAdapter.cs
- AttributeQuery.cs
- UriScheme.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Style.cs
- HttpCapabilitiesSectionHandler.cs
- SafeNativeMethods.cs
- DataGridViewRowHeaderCell.cs
- UnsafeNativeMethods.cs
- CompiledRegexRunnerFactory.cs
- SamlSerializer.cs
- Timer.cs
- SafeSecurityHelper.cs