Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / HttpHandlersSection.cs / 1305376 / 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; 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; 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
- TouchesCapturedWithinProperty.cs
- MinimizableAttributeTypeConverter.cs
- ImageCodecInfoPrivate.cs
- TcpClientSocketManager.cs
- BaseParser.cs
- DateRangeEvent.cs
- CharacterString.cs
- InputLanguage.cs
- GridViewRowCollection.cs
- RelatedPropertyManager.cs
- ProxyWebPart.cs
- EntityWrapperFactory.cs
- BitmapEffectDrawing.cs
- StandardMenuStripVerb.cs
- FtpCachePolicyElement.cs
- OleDbPermission.cs
- MaterializeFromAtom.cs
- FilteredDataSetHelper.cs
- TableLayout.cs
- DateTimeParse.cs
- MachineKeyValidationConverter.cs
- EmptyControlCollection.cs
- StylusEditingBehavior.cs
- UInt64Storage.cs
- WebBrowserNavigatedEventHandler.cs
- TypeSystem.cs
- StructuredProperty.cs
- GroupBox.cs
- AdapterDictionary.cs
- CompatibleIComparer.cs
- BadImageFormatException.cs
- DataListItemCollection.cs
- SQLMembershipProvider.cs
- StructuralType.cs
- WebAdminConfigurationHelper.cs
- XamlClipboardData.cs
- InstanceCompleteException.cs
- TextServicesCompartment.cs
- Pair.cs
- DataRowExtensions.cs
- BlurEffect.cs
- GPRECT.cs
- FixedStringLookup.cs
- BridgeDataRecord.cs
- DllNotFoundException.cs
- XmlBinaryWriterSession.cs
- WmpBitmapDecoder.cs
- precedingsibling.cs
- Point4D.cs
- HttpProfileGroupBase.cs
- SessionPageStatePersister.cs
- _HeaderInfoTable.cs
- EditorZone.cs
- HtmlFormWrapper.cs
- MetadataArtifactLoaderComposite.cs
- EventLogPermissionAttribute.cs
- ProfileProvider.cs
- DisplayMemberTemplateSelector.cs
- TableRow.cs
- D3DImage.cs
- ExtractedStateEntry.cs
- GeometryDrawing.cs
- DetailsViewDeleteEventArgs.cs
- TreePrinter.cs
- RecognitionEventArgs.cs
- MaterialGroup.cs
- UnsafeNativeMethods.cs
- AuthStoreRoleProvider.cs
- UpDownEvent.cs
- ObjectHandle.cs
- FixedTextPointer.cs
- ContainerUtilities.cs
- HttpHandlerActionCollection.cs
- RowParagraph.cs
- SecurityContextSecurityTokenResolver.cs
- WindowsListViewSubItem.cs
- GestureRecognitionResult.cs
- DragStartedEventArgs.cs
- RuleSettingsCollection.cs
- DbParameterCollectionHelper.cs
- GridViewColumnHeader.cs
- QueryOperationResponseOfT.cs
- UnsafeCollabNativeMethods.cs
- ErrorInfoXmlDocument.cs
- Clipboard.cs
- basecomparevalidator.cs
- IncrementalCompileAnalyzer.cs
- SessionSwitchEventArgs.cs
- VirtualPathUtility.cs
- DockPattern.cs
- SessionPageStatePersister.cs
- BrowserInteropHelper.cs
- MsmqBindingFilter.cs
- CLRBindingWorker.cs
- LifetimeMonitor.cs
- TransactionManager.cs
- RequestCacheManager.cs
- TriState.cs
- XmlObjectSerializerReadContext.cs
- ErrorBehavior.cs