Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / HttpHandlersSection.cs / 3 / 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; } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CustomCategoryAttribute.cs
- ComboBoxItem.cs
- ConfigsHelper.cs
- UrlPath.cs
- EntityViewGenerator.cs
- StaticResourceExtension.cs
- ComplexLine.cs
- Size3DValueSerializer.cs
- DataServiceHost.cs
- MediaCommands.cs
- ToolStripPanelRenderEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- MinMaxParagraphWidth.cs
- MaskDesignerDialog.cs
- ListViewGroupCollectionEditor.cs
- SvcMapFileSerializer.cs
- AdRotator.cs
- Light.cs
- WebPartExportVerb.cs
- DataSourceView.cs
- ColorInterpolationModeValidation.cs
- VisualStyleTypesAndProperties.cs
- CalendarDataBindingHandler.cs
- FontWeightConverter.cs
- ParseNumbers.cs
- DocumentOrderQuery.cs
- TransactionOptions.cs
- FormViewModeEventArgs.cs
- ButtonBase.cs
- DataShape.cs
- SmtpClient.cs
- UInt32.cs
- EdgeProfileValidation.cs
- SecurityElement.cs
- ContainsRowNumberChecker.cs
- ConfigurationSectionGroupCollection.cs
- MenuCommands.cs
- DirectoryRedirect.cs
- HttpContextServiceHost.cs
- Point3DCollection.cs
- DataRelationPropertyDescriptor.cs
- EventWaitHandle.cs
- WebPartCloseVerb.cs
- DataError.cs
- DynamicRenderer.cs
- PeerOutputChannel.cs
- XmlQueryOutput.cs
- ChtmlPageAdapter.cs
- StateBag.cs
- StringAttributeCollection.cs
- SqlDataSourceTableQuery.cs
- SoapFault.cs
- RoleBoolean.cs
- DataRelationPropertyDescriptor.cs
- RadioButton.cs
- DiscriminatorMap.cs
- AsynchronousChannelMergeEnumerator.cs
- WebPartDisplayModeEventArgs.cs
- ReadOnlyCollectionBuilder.cs
- ParserStack.cs
- KeyValueConfigurationElement.cs
- MembershipPasswordException.cs
- Char.cs
- ObjectSet.cs
- TableParaClient.cs
- ContentDesigner.cs
- SHA384.cs
- Scene3D.cs
- EmptyElement.cs
- Rotation3DAnimation.cs
- InputLanguageProfileNotifySink.cs
- ConnectivityStatus.cs
- DbQueryCommandTree.cs
- RtfControls.cs
- ImagingCache.cs
- IPAddress.cs
- HWStack.cs
- IntSecurity.cs
- AggregateNode.cs
- ModuleConfigurationInfo.cs
- DataBinder.cs
- PageAsyncTaskManager.cs
- CanonicalFormWriter.cs
- ApplyHostConfigurationBehavior.cs
- HandleExceptionArgs.cs
- NetDispatcherFaultException.cs
- ThrowHelper.cs
- SafeRightsManagementQueryHandle.cs
- ContextProperty.cs
- LinkLabel.cs
- login.cs
- Pipe.cs
- ColumnWidthChangingEvent.cs
- SqlClientWrapperSmiStreamChars.cs
- PrivilegedConfigurationManager.cs
- SlotInfo.cs
- CompleteWizardStep.cs
- TaskExceptionHolder.cs
- XmlLangPropertyAttribute.cs
- DynamicPhysicalDiscoSearcher.cs