Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / ModulesEntry.cs / 1 / ModulesEntry.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Config related classes for HttpApplication * */ namespace System.Web.Configuration.Common { using System.Runtime.Serialization.Formatters; using System.Threading; using System.Runtime.InteropServices; using System.ComponentModel; using System.Collections; using System.Reflection; using System.Globalization; using System.Configuration; using System.Web; using System.Web.SessionState; using System.Web.Security; using System.Web.Util; using System.Web.Compilation; /* * Single Entry of request to class */ internal class ModulesEntry { private String _name; private Type _type; internal ModulesEntry(String name, String typeName, string propertyName, ConfigurationElement configElement) { _name = (name != null) ? name : String.Empty; // Don't check the APTCA bit for modules (VSWhidbey 467768, 550122) _type = ConfigUtil.GetType(typeName, propertyName, configElement, false /*checkAptcaBit*/); if (!typeof(IHttpModule).IsAssignableFrom(_type)) { if (configElement == null) { throw new ConfigurationErrorsException(SR.GetString(SR.Type_not_module, typeName)); } else { throw new ConfigurationErrorsException(SR.GetString(SR.Type_not_module, typeName), configElement.ElementInformation.Properties["type"].Source, configElement.ElementInformation.Properties["type"].LineNumber); } } } internal static bool IsTypeMatch(Type type, String typeName) { return(type.Name.Equals(typeName) || type.FullName.Equals(typeName)); } internal String ModuleName { get { return _name; } } internal /*public*/ IHttpModule Create() { return (IHttpModule)HttpRuntime.CreateNonPublicInstance(_type); } #if UNUSED_CODE internal /*public*/ Type Type { get { return _type; } } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Config related classes for HttpApplication * */ namespace System.Web.Configuration.Common { using System.Runtime.Serialization.Formatters; using System.Threading; using System.Runtime.InteropServices; using System.ComponentModel; using System.Collections; using System.Reflection; using System.Globalization; using System.Configuration; using System.Web; using System.Web.SessionState; using System.Web.Security; using System.Web.Util; using System.Web.Compilation; /* * Single Entry of request to class */ internal class ModulesEntry { private String _name; private Type _type; internal ModulesEntry(String name, String typeName, string propertyName, ConfigurationElement configElement) { _name = (name != null) ? name : String.Empty; // Don't check the APTCA bit for modules (VSWhidbey 467768, 550122) _type = ConfigUtil.GetType(typeName, propertyName, configElement, false /*checkAptcaBit*/); if (!typeof(IHttpModule).IsAssignableFrom(_type)) { if (configElement == null) { throw new ConfigurationErrorsException(SR.GetString(SR.Type_not_module, typeName)); } else { throw new ConfigurationErrorsException(SR.GetString(SR.Type_not_module, typeName), configElement.ElementInformation.Properties["type"].Source, configElement.ElementInformation.Properties["type"].LineNumber); } } } internal static bool IsTypeMatch(Type type, String typeName) { return(type.Name.Equals(typeName) || type.FullName.Equals(typeName)); } internal String ModuleName { get { return _name; } } internal /*public*/ IHttpModule Create() { return (IHttpModule)HttpRuntime.CreateNonPublicInstance(_type); } #if UNUSED_CODE internal /*public*/ Type Type { get { return _type; } } #endif } } // 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
- MemberMaps.cs
- PropertyMapper.cs
- StorageScalarPropertyMapping.cs
- HtmlTableCell.cs
- AnimationClock.cs
- Variable.cs
- TypeReference.cs
- SqlDataSourceConfigureSelectPanel.cs
- XPathNode.cs
- FormatConvertedBitmap.cs
- TypeGeneratedEventArgs.cs
- ThreadExceptionEvent.cs
- httpserverutility.cs
- DynamicPropertyReader.cs
- DocumentPropertiesDialog.cs
- MostlySingletonList.cs
- RectConverter.cs
- InfocardClientCredentials.cs
- ExcludeFromCodeCoverageAttribute.cs
- ToolStripButton.cs
- CodeMethodInvokeExpression.cs
- HttpModuleAction.cs
- FormClosingEvent.cs
- AuthenticationModuleElementCollection.cs
- PropertyEmitterBase.cs
- DiagnosticTrace.cs
- X509AsymmetricSecurityKey.cs
- RightsManagementEncryptedStream.cs
- ControlValuePropertyAttribute.cs
- Transform3DCollection.cs
- ProfileSection.cs
- DataGridViewLinkCell.cs
- LightweightCodeGenerator.cs
- XpsS0ValidatingLoader.cs
- EntityDataSourceSelectedEventArgs.cs
- ListDictionary.cs
- PeerNodeAddress.cs
- UIPermission.cs
- ConfigPathUtility.cs
- CodeDomConfigurationHandler.cs
- mda.cs
- SqlPersonalizationProvider.cs
- CompositeScriptReference.cs
- XamlPathDataSerializer.cs
- FixedStringLookup.cs
- TableAdapterManagerGenerator.cs
- PropertyIDSet.cs
- SmtpDigestAuthenticationModule.cs
- Bitmap.cs
- ILGenerator.cs
- DesignerHost.cs
- Positioning.cs
- ProtocolsConfiguration.cs
- PersonalizableAttribute.cs
- ButtonPopupAdapter.cs
- DisplayNameAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DaylightTime.cs
- HorizontalAlignConverter.cs
- DataGridViewBindingCompleteEventArgs.cs
- XmlLinkedNode.cs
- HMACSHA256.cs
- CheckedListBox.cs
- _IPv6Address.cs
- SectionInformation.cs
- SimpleLine.cs
- WebDisplayNameAttribute.cs
- AdapterUtil.cs
- AutomationElement.cs
- SetStoryboardSpeedRatio.cs
- DomNameTable.cs
- CodeTypeConstructor.cs
- StateManagedCollection.cs
- StatusBarDrawItemEvent.cs
- EventItfInfo.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ZipFileInfo.cs
- ScalarType.cs
- IPEndPointCollection.cs
- GrammarBuilder.cs
- SqlAggregateChecker.cs
- ExpressionsCollectionConverter.cs
- Variant.cs
- x509store.cs
- ProfessionalColors.cs
- COM2Properties.cs
- XmlElementAttribute.cs
- DataGridViewButtonColumn.cs
- StubHelpers.cs
- SessionState.cs
- SizeFConverter.cs
- TableRow.cs
- WebPartDisplayModeCancelEventArgs.cs
- HttpListenerRequest.cs
- VectorValueSerializer.cs
- Table.cs
- Separator.cs
- ThicknessAnimation.cs
- BindingWorker.cs
- FormViewCommandEventArgs.cs