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
- HeaderPanel.cs
- Property.cs
- ShutDownListener.cs
- WebPartConnectionsConnectVerb.cs
- TypeUnloadedException.cs
- RowToFieldTransformer.cs
- ProcessHost.cs
- ApplicationId.cs
- ToolStripDropTargetManager.cs
- ScriptManager.cs
- AmbientLight.cs
- XsdDataContractExporter.cs
- ToolboxItemCollection.cs
- TextViewSelectionProcessor.cs
- TextRunCacheImp.cs
- DbParameterHelper.cs
- ItemContainerGenerator.cs
- RNGCryptoServiceProvider.cs
- SqlProfileProvider.cs
- WindowsPrincipal.cs
- SQLByte.cs
- GridViewDeletedEventArgs.cs
- ImageField.cs
- DataServiceException.cs
- WebZone.cs
- SecuritySessionFilter.cs
- SymbolTable.cs
- ProcessThreadCollection.cs
- AmbientLight.cs
- ComplusTypeValidator.cs
- DbMetaDataColumnNames.cs
- HttpRequest.cs
- XmlWrappingReader.cs
- FormatConvertedBitmap.cs
- PrimaryKeyTypeConverter.cs
- TargetInvocationException.cs
- BitSet.cs
- RIPEMD160Managed.cs
- TextSelectionHelper.cs
- RC2.cs
- DataGridViewComboBoxEditingControl.cs
- FormsAuthenticationUser.cs
- GlyphsSerializer.cs
- VisemeEventArgs.cs
- SQLInt16Storage.cs
- XMLSchema.cs
- Accessible.cs
- Input.cs
- propertyentry.cs
- PhysicalFontFamily.cs
- TextRangeSerialization.cs
- NameValueConfigurationCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- SecurityKeyType.cs
- AsyncPostBackErrorEventArgs.cs
- HtmlValidationSummaryAdapter.cs
- PixelFormat.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- MasterPageParser.cs
- XhtmlTextWriter.cs
- ConditionCollection.cs
- NonDualMessageSecurityOverHttpElement.cs
- SearchExpression.cs
- ByteStorage.cs
- DateRangeEvent.cs
- DataTemplateKey.cs
- ObjRef.cs
- DependencyPropertyAttribute.cs
- FileUtil.cs
- OdbcHandle.cs
- BaseCollection.cs
- ConstantProjectedSlot.cs
- cryptoapiTransform.cs
- Trigger.cs
- SiteMapSection.cs
- SmiMetaData.cs
- SqlLiftWhereClauses.cs
- ToolboxComponentsCreatingEventArgs.cs
- EnumType.cs
- ButtonChrome.cs
- Encoding.cs
- WorkflowRuntimeServiceElement.cs
- ProxyAttribute.cs
- Dynamic.cs
- ResXFileRef.cs
- DriveInfo.cs
- TraceLog.cs
- WinFormsSpinner.cs
- AttachedPropertiesService.cs
- TraceRecord.cs
- RandomDelaySendsAsyncResult.cs
- FileDialogPermission.cs
- MenuCommand.cs
- LocalizabilityAttribute.cs
- CompilerParameters.cs
- SqlMethodCallConverter.cs
- FloaterBaseParaClient.cs
- DataControlImageButton.cs
- ScriptReference.cs
- Version.cs