Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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 _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. //------------------------------------------------------------------------------ //// 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 _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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowEnvironment.cs
- DoubleIndependentAnimationStorage.cs
- DateTimeConverter2.cs
- WindowsFormsLinkLabel.cs
- wmiprovider.cs
- RestHandler.cs
- RestHandler.cs
- UpdatePanelTrigger.cs
- GridViewUpdatedEventArgs.cs
- ChangeDirector.cs
- IndexingContentUnit.cs
- ContextMenu.cs
- HttpListenerRequest.cs
- StrongNameIdentityPermission.cs
- VirtualDirectoryMapping.cs
- RemotingException.cs
- DesignerActionVerbItem.cs
- PointF.cs
- InlineUIContainer.cs
- SqlXmlStorage.cs
- DropSource.cs
- HuffCodec.cs
- ComponentChangedEvent.cs
- CodeCommentStatementCollection.cs
- QilUnary.cs
- AQNBuilder.cs
- DoubleAnimationBase.cs
- DesignerSerializationManager.cs
- GifBitmapEncoder.cs
- WebPartZoneBase.cs
- IItemContainerGenerator.cs
- SmtpCommands.cs
- LocatorPart.cs
- SharedStatics.cs
- DesignerVerbToolStripMenuItem.cs
- ArithmeticException.cs
- AssemblyBuilder.cs
- BodyGlyph.cs
- PerspectiveCamera.cs
- AppDomainProtocolHandler.cs
- ProjectionPath.cs
- FrameworkContextData.cs
- Rect.cs
- ButtonBase.cs
- _PooledStream.cs
- ColorContextHelper.cs
- ReadOnlyCollection.cs
- ValidatorCompatibilityHelper.cs
- NamedElement.cs
- ListContractAdapter.cs
- ToolStripDropDown.cs
- SQLMoneyStorage.cs
- JsonEncodingStreamWrapper.cs
- ClassValidator.cs
- SessionStateItemCollection.cs
- SafeProcessHandle.cs
- CustomErrorsSection.cs
- ProjectedSlot.cs
- EntityClassGenerator.cs
- VarInfo.cs
- ProfileSettingsCollection.cs
- ListViewItemMouseHoverEvent.cs
- SqlMethods.cs
- DataBoundControlHelper.cs
- OutputCache.cs
- LinearGradientBrush.cs
- PropertyToken.cs
- ExpressionBinding.cs
- WebPartCollection.cs
- ModelVisual3D.cs
- ImmutableCollection.cs
- DataBoundControlAdapter.cs
- Decoder.cs
- exports.cs
- selecteditemcollection.cs
- XmlArrayItemAttributes.cs
- ASCIIEncoding.cs
- QilCloneVisitor.cs
- ChtmlFormAdapter.cs
- EllipseGeometry.cs
- METAHEADER.cs
- DbProviderFactoriesConfigurationHandler.cs
- HttpCachePolicy.cs
- LiteralLink.cs
- ImageKeyConverter.cs
- UnsettableComboBox.cs
- MimeWriter.cs
- PreloadHost.cs
- NameService.cs
- VisualTreeUtils.cs
- userdatakeys.cs
- PenThread.cs
- PolyBezierSegmentFigureLogic.cs
- PageBreakRecord.cs
- AutomationEventArgs.cs
- ToolStripContainer.cs
- DownloadProgressEventArgs.cs
- InsufficientMemoryException.cs
- TdsParserStateObject.cs
- HttpListenerException.cs