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
- UrlMapping.cs
- EventHandlerList.cs
- DynamicUpdateCommand.cs
- AdapterUtil.cs
- ArcSegment.cs
- FormsIdentity.cs
- TextServicesManager.cs
- WebBrowserEvent.cs
- RegistryHandle.cs
- Set.cs
- Resources.Designer.cs
- NumberSubstitution.cs
- TagNameToTypeMapper.cs
- XmlNamespaceManager.cs
- DataFieldEditor.cs
- EventLogWatcher.cs
- Timeline.cs
- ToolbarAUtomationPeer.cs
- ImplicitInputBrush.cs
- TraceContextRecord.cs
- DragCompletedEventArgs.cs
- DataDesignUtil.cs
- GlobalizationAssembly.cs
- MatrixAnimationUsingKeyFrames.cs
- SelectionRange.cs
- TextRangeEdit.cs
- AddInController.cs
- GridItemCollection.cs
- NullRuntimeConfig.cs
- AnnotationHelper.cs
- CodePageEncoding.cs
- RegisteredScript.cs
- UIElementAutomationPeer.cs
- XmlWriterTraceListener.cs
- ColumnCollection.cs
- OutOfProcStateClientManager.cs
- HtmlHistory.cs
- WebServiceMethodData.cs
- ValidatorCompatibilityHelper.cs
- VariableAction.cs
- ContainerVisual.cs
- RC2.cs
- HttpErrorTraceRecord.cs
- AliasExpr.cs
- SecurityHelper.cs
- Interfaces.cs
- StyleSheetComponentEditor.cs
- WebSysDescriptionAttribute.cs
- DbConnectionHelper.cs
- SortFieldComparer.cs
- Menu.cs
- AnnotationService.cs
- DependentList.cs
- ListItemDetailViewAttribute.cs
- CompilerTypeWithParams.cs
- Executor.cs
- HtmlTextArea.cs
- SplitterPanel.cs
- CommentEmitter.cs
- WindowsFormsSectionHandler.cs
- BindingMAnagerBase.cs
- WasEndpointConfigContainer.cs
- RSACryptoServiceProvider.cs
- ReverseInheritProperty.cs
- QilLoop.cs
- ParameterCollection.cs
- DataGridTextColumn.cs
- IsolatedStorage.cs
- BrushProxy.cs
- OdbcInfoMessageEvent.cs
- ObjectListFieldsPage.cs
- AddValidationError.cs
- SmiRequestExecutor.cs
- Section.cs
- AccessDataSourceView.cs
- EventLog.cs
- GenericTypeParameterBuilder.cs
- DiscardableAttribute.cs
- ToolStripGripRenderEventArgs.cs
- CodeTypeDelegate.cs
- ExpressionPrefixAttribute.cs
- NodeFunctions.cs
- TypeEnumerableViewSchema.cs
- PerspectiveCamera.cs
- InvalidComObjectException.cs
- EncoderParameters.cs
- ApplicationSettingsBase.cs
- BuildProvidersCompiler.cs
- SqlCacheDependencySection.cs
- designeractionbehavior.cs
- EventLogPermission.cs
- ErrorWebPart.cs
- SimpleFileLog.cs
- LogEntryHeaderSerializer.cs
- ProcessHostServerConfig.cs
- CodeCommentStatementCollection.cs
- WebCategoryAttribute.cs
- GradientStopCollection.cs
- XamlToRtfWriter.cs
- ArgumentOutOfRangeException.cs