Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / AppLevelCompilationSectionCache.cs / 1305376 / 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), SecuritySafeCritical(), ] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PeerNameRecord.cs
- XamlParser.cs
- DriveInfo.cs
- UnsafeNativeMethods.cs
- TagNameToTypeMapper.cs
- SmiGettersStream.cs
- ImageDrawing.cs
- Imaging.cs
- HttpServerVarsCollection.cs
- XmlSubtreeReader.cs
- MappableObjectManager.cs
- DbModificationCommandTree.cs
- PropertyFilter.cs
- ResourceDescriptionAttribute.cs
- RenderContext.cs
- SqlSupersetValidator.cs
- CommonDialog.cs
- storepermissionattribute.cs
- RectAnimationBase.cs
- BindingWorker.cs
- DependencyPropertyKey.cs
- OracleParameterBinding.cs
- UserCancellationException.cs
- SocketException.cs
- AdCreatedEventArgs.cs
- SurrogateSelector.cs
- FusionWrap.cs
- MetadataArtifactLoaderCompositeFile.cs
- Table.cs
- RuntimeEnvironment.cs
- SplayTreeNode.cs
- RequestResponse.cs
- KeyTime.cs
- BitVector32.cs
- SeverityFilter.cs
- ResourceDictionary.cs
- SHA384.cs
- CodeAttributeArgument.cs
- TransactionContextManager.cs
- AssemblyContextControlItem.cs
- BindingOperations.cs
- ModelItemDictionaryImpl.cs
- MethodInfo.cs
- AccessDataSourceView.cs
- MouseActionValueSerializer.cs
- ConnectionManagementElementCollection.cs
- GacUtil.cs
- AutoSizeToolBoxItem.cs
- MailWebEventProvider.cs
- PageCodeDomTreeGenerator.cs
- WindowsIPAddress.cs
- UInt16.cs
- TableCellAutomationPeer.cs
- WebSysDescriptionAttribute.cs
- SplitContainer.cs
- WebRequestModulesSection.cs
- DetailsViewRowCollection.cs
- ColumnMapProcessor.cs
- TextEffectCollection.cs
- WebPartUtil.cs
- RNGCryptoServiceProvider.cs
- CharacterBuffer.cs
- NamedPipeChannelListener.cs
- ContextCorrelationInitializer.cs
- QuaternionAnimation.cs
- JpegBitmapDecoder.cs
- login.cs
- SmtpReplyReader.cs
- ChildTable.cs
- Classification.cs
- HelpProvider.cs
- SingleAnimationUsingKeyFrames.cs
- OrderingQueryOperator.cs
- XmlILAnnotation.cs
- UDPClient.cs
- HttpCapabilitiesSectionHandler.cs
- PolyBezierSegmentFigureLogic.cs
- RenderCapability.cs
- COMException.cs
- SectionRecord.cs
- InternalBase.cs
- AsyncPostBackErrorEventArgs.cs
- StringAnimationBase.cs
- EDesignUtil.cs
- TextRunTypographyProperties.cs
- DataGridViewRow.cs
- SpeechDetectedEventArgs.cs
- SelfSignedCertificate.cs
- DispatcherProcessingDisabled.cs
- Pointer.cs
- Properties.cs
- Transform3DGroup.cs
- HttpModuleAction.cs
- SqlFacetAttribute.cs
- Types.cs
- UniqueSet.cs
- TypeLoader.cs
- ServiceEndpointElement.cs
- ObfuscateAssemblyAttribute.cs
- IteratorFilter.cs