Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / HttpHandlersSection.cs / 1 / HttpHandlersSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Web.Util; using System.Web.Compilation; using System.Globalization; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class HttpHandlersSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propHandlers = new ConfigurationProperty(null, typeof(HttpHandlerActionCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); private bool _validated; static HttpHandlersSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propHandlers); } public HttpHandlersSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("", IsDefaultCollection = true)] public HttpHandlerActionCollection Handlers { get { return (HttpHandlerActionCollection)base[_propHandlers]; } } internal bool ValidateHandlers() { if (!_validated) { lock (this) { if (!_validated) { foreach (HttpHandlerAction ha in Handlers) { ha.InitValidateInternal(); } _validated = true; } } } return _validated; } internal HttpHandlerAction FindMapping(String verb, VirtualPath path) { ValidateHandlers(); for (int i = 0; i < Handlers.Count; i++) { HttpHandlerAction m = (HttpHandlerAction)Handlers[i]; if (m.IsMatch(verb, path)) { return m; } } return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Web.Util; using System.Web.Compilation; using System.Globalization; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class HttpHandlersSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propHandlers = new ConfigurationProperty(null, typeof(HttpHandlerActionCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); private bool _validated; static HttpHandlersSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propHandlers); } public HttpHandlersSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("", IsDefaultCollection = true)] public HttpHandlerActionCollection Handlers { get { return (HttpHandlerActionCollection)base[_propHandlers]; } } internal bool ValidateHandlers() { if (!_validated) { lock (this) { if (!_validated) { foreach (HttpHandlerAction ha in Handlers) { ha.InitValidateInternal(); } _validated = true; } } } return _validated; } internal HttpHandlerAction FindMapping(String verb, VirtualPath path) { ValidateHandlers(); for (int i = 0; i < Handlers.Count; i++) { HttpHandlerAction m = (HttpHandlerAction)Handlers[i]; if (m.IsMatch(verb, path)) { return m; } } return null; } } } // 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
- DataGridViewIntLinkedList.cs
- adornercollection.cs
- DataGridRow.cs
- Regex.cs
- HwndKeyboardInputProvider.cs
- KeySpline.cs
- ExpanderAutomationPeer.cs
- FigureParagraph.cs
- ProxyAssemblyNotLoadedException.cs
- Automation.cs
- ExtensionElementCollection.cs
- OpenTypeCommon.cs
- XmlTextEncoder.cs
- BinaryVersion.cs
- QueuePathDialog.cs
- HtmlFormWrapper.cs
- PaginationProgressEventArgs.cs
- WebZoneDesigner.cs
- ValueExpressions.cs
- WebControlAdapter.cs
- NGCSerializationManager.cs
- DataGridViewRowsAddedEventArgs.cs
- SqlCacheDependencySection.cs
- BrowserCapabilitiesCodeGenerator.cs
- Ipv6Element.cs
- NamedElement.cs
- CompiledQuery.cs
- ToolStripContextMenu.cs
- WindowsTooltip.cs
- TraceFilter.cs
- HeaderedItemsControl.cs
- UTF8Encoding.cs
- MatcherBuilder.cs
- SHA256.cs
- EntityExpressionVisitor.cs
- ExpressionEditor.cs
- GZipStream.cs
- XNodeNavigator.cs
- TreeViewItem.cs
- Int32RectConverter.cs
- BitmapInitialize.cs
- AccessedThroughPropertyAttribute.cs
- SortQuery.cs
- CryptoApi.cs
- PluralizationServiceUtil.cs
- ExpandSegment.cs
- Shared.cs
- OAVariantLib.cs
- SqlSupersetValidator.cs
- PtsContext.cs
- XsdDuration.cs
- PassportIdentity.cs
- DecimalConstantAttribute.cs
- RawUIStateInputReport.cs
- Function.cs
- BasicAsyncResult.cs
- HttpListener.cs
- __TransparentProxy.cs
- ConfigXmlComment.cs
- StructuredTypeEmitter.cs
- ComponentConverter.cs
- XpsManager.cs
- Script.cs
- ToolConsole.cs
- Material.cs
- SQLRoleProvider.cs
- unsafeIndexingFilterStream.cs
- StringResourceManager.cs
- Pair.cs
- FilterableAttribute.cs
- EventMap.cs
- xsdvalidator.cs
- login.cs
- Options.cs
- DomNameTable.cs
- CompositeFontParser.cs
- ProfileInfo.cs
- ServiceManager.cs
- WebCategoryAttribute.cs
- DragCompletedEventArgs.cs
- RequestCacheManager.cs
- DbParameterCollection.cs
- DesignerActionPropertyItem.cs
- DataGridItemEventArgs.cs
- DataStorage.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- DockingAttribute.cs
- IndexedWhereQueryOperator.cs
- WebPartDescriptionCollection.cs
- WSDualHttpSecurityMode.cs
- TextFindEngine.cs
- InvalidOleVariantTypeException.cs
- WbemProvider.cs
- SQlBooleanStorage.cs
- CqlBlock.cs
- OutputCacheProfileCollection.cs
- DoubleUtil.cs
- ErrorLog.cs
- TimeSpanConverter.cs
- SessionState.cs