Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrtCap_Reader.cs
- SamlSecurityTokenAuthenticator.cs
- PolyQuadraticBezierSegment.cs
- EnumType.cs
- MaxSessionCountExceededException.cs
- DataGridViewIntLinkedList.cs
- FileStream.cs
- RectAnimation.cs
- SelectionPattern.cs
- ExtendedPropertiesHandler.cs
- BitmapFrameEncode.cs
- MultipleViewPattern.cs
- XamlSerializer.cs
- RedistVersionInfo.cs
- EdmItemError.cs
- RequestQueue.cs
- EndPoint.cs
- ToolStripDropTargetManager.cs
- Types.cs
- CorrelationManager.cs
- DataGridCommandEventArgs.cs
- ControlValuePropertyAttribute.cs
- PeerApplicationLaunchInfo.cs
- ControllableStoryboardAction.cs
- ToolboxItemFilterAttribute.cs
- ParameterToken.cs
- StrongNameKeyPair.cs
- LambdaCompiler.Statements.cs
- PagesSection.cs
- SqlHelper.cs
- ArcSegment.cs
- FixedTextPointer.cs
- Vector3DCollection.cs
- SiteMap.cs
- XmlSchemaSimpleTypeRestriction.cs
- UnsafeNativeMethods.cs
- SelectorItemAutomationPeer.cs
- LinearKeyFrames.cs
- _FtpDataStream.cs
- FolderLevelBuildProviderCollection.cs
- XmlSchemaObject.cs
- SessionSwitchEventArgs.cs
- XhtmlBasicLiteralTextAdapter.cs
- DataObjectCopyingEventArgs.cs
- TextBoxDesigner.cs
- CellPartitioner.cs
- TemplateNameScope.cs
- Mutex.cs
- invalidudtexception.cs
- TextServicesCompartmentEventSink.cs
- AddingNewEventArgs.cs
- IsolationInterop.cs
- ProjectionPruner.cs
- ProviderCollection.cs
- ValueSerializerAttribute.cs
- TaskHelper.cs
- XmlWrappingReader.cs
- DbReferenceCollection.cs
- NavigationExpr.cs
- WebSysDescriptionAttribute.cs
- TypeNameParser.cs
- DiagnosticTrace.cs
- Line.cs
- TraceInternal.cs
- DbXmlEnabledProviderManifest.cs
- RecognizeCompletedEventArgs.cs
- WindowsToolbarItemAsMenuItem.cs
- BindingSource.cs
- HttpListenerRequest.cs
- BehaviorEditorPart.cs
- WebPartsPersonalization.cs
- StretchValidation.cs
- HScrollProperties.cs
- Exception.cs
- ArrayElementGridEntry.cs
- ListViewCommandEventArgs.cs
- AssertUtility.cs
- dataobject.cs
- DbDataRecord.cs
- DBConcurrencyException.cs
- GlyphShapingProperties.cs
- CheckPair.cs
- FixedSOMElement.cs
- DataRelationCollection.cs
- BinHexDecoder.cs
- BrushConverter.cs
- TokenBasedSetEnumerator.cs
- DocumentSequence.cs
- XmlAnyElementAttributes.cs
- BasicCellRelation.cs
- CodeMemberMethod.cs
- OverloadGroupAttribute.cs
- CssTextWriter.cs
- XmlComplianceUtil.cs
- RepeatEnumerable.cs
- ResXResourceWriter.cs
- SID.cs
- RegistryConfigurationProvider.cs
- BitmapEffectDrawingContextWalker.cs
- ItemsChangedEventArgs.cs