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
- FileEnumerator.cs
- UrlMapping.cs
- ContextTokenTypeConverter.cs
- isolationinterop.cs
- ReadingWritingEntityEventArgs.cs
- Interlocked.cs
- TextRange.cs
- IgnoreDeviceFilterElementCollection.cs
- DataObjectPastingEventArgs.cs
- FormViewUpdatedEventArgs.cs
- Pen.cs
- HelpKeywordAttribute.cs
- DiscoveryDocument.cs
- ComplexBindingPropertiesAttribute.cs
- SystemWebSectionGroup.cs
- ReadOnlyTernaryTree.cs
- ListViewDataItem.cs
- WinEventWrap.cs
- ExpressionEditorAttribute.cs
- ParentControlDesigner.cs
- SqlDataSourceEnumerator.cs
- DeferredReference.cs
- EndOfStreamException.cs
- ExtenderProvidedPropertyAttribute.cs
- ConfigXmlComment.cs
- CookieParameter.cs
- HandleInitializationContext.cs
- SmtpLoginAuthenticationModule.cs
- XmlQueryCardinality.cs
- MsmqTransportSecurity.cs
- ProfileInfo.cs
- ApplicationException.cs
- UiaCoreTypesApi.cs
- XmlDataLoader.cs
- ProviderIncompatibleException.cs
- TdsParserSafeHandles.cs
- MainMenu.cs
- TemplateContentLoader.cs
- CancellationTokenSource.cs
- InspectionWorker.cs
- TextTreeExtractElementUndoUnit.cs
- PrefixQName.cs
- PackageProperties.cs
- WindowsAuthenticationModule.cs
- IDispatchConstantAttribute.cs
- SecurityHeaderTokenResolver.cs
- CodeValidator.cs
- ProtocolElement.cs
- KeyConverter.cs
- TraceContextEventArgs.cs
- SqlMetaData.cs
- VirtualPath.cs
- GeometryCombineModeValidation.cs
- DesignColumn.cs
- BitmapEffectCollection.cs
- DbProviderFactory.cs
- RequestResponse.cs
- ContextStack.cs
- PropertyGridEditorPart.cs
- TraceLevelStore.cs
- AssemblyUtil.cs
- EnumUnknown.cs
- CustomWebEventKey.cs
- DocumentProperties.cs
- ComponentConverter.cs
- HtmlInputPassword.cs
- FileVersionInfo.cs
- ClientSponsor.cs
- SchemaSetCompiler.cs
- InvalidComObjectException.cs
- DesignTimeTemplateParser.cs
- SettingsSavedEventArgs.cs
- TextTreeUndo.cs
- FileLoadException.cs
- ButtonBase.cs
- ToolStripOverflow.cs
- TableRow.cs
- ImageAnimator.cs
- HttpRawResponse.cs
- Property.cs
- WebServiceAttribute.cs
- ShaderEffect.cs
- SqlTransaction.cs
- CheckBoxList.cs
- JulianCalendar.cs
- ConnectionPoint.cs
- ListBoxChrome.cs
- ValidationHelpers.cs
- AssemblyCache.cs
- SecurityRuntime.cs
- MaskDesignerDialog.cs
- ErrorBehavior.cs
- TableCell.cs
- XmlSubtreeReader.cs
- BaseProcessor.cs
- DocumentPage.cs
- MenuRendererClassic.cs
- ApplicationException.cs
- TextBox.cs
- CodeAttributeDeclarationCollection.cs