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
- AliasGenerator.cs
- EncoderExceptionFallback.cs
- ApplicationSecurityInfo.cs
- RedirectionProxy.cs
- InputBinder.cs
- XamlToRtfWriter.cs
- ContractMapping.cs
- XmlEnumAttribute.cs
- HttpRawResponse.cs
- SR.Designer.cs
- ParameterToken.cs
- ProcessModuleCollection.cs
- SqlServices.cs
- entityreference_tresulttype.cs
- TaskExtensions.cs
- Tuple.cs
- EditorPartChrome.cs
- TableRow.cs
- GrabHandleGlyph.cs
- WebPartConnectionCollection.cs
- CryptoHelper.cs
- CacheModeConverter.cs
- _IPv6Address.cs
- AdornedElementPlaceholder.cs
- DependencyPropertyAttribute.cs
- XmlSerializerVersionAttribute.cs
- Wildcard.cs
- TdsEnums.cs
- OdbcParameter.cs
- ParagraphResult.cs
- ImageField.cs
- ChannelServices.cs
- StringFreezingAttribute.cs
- TransformGroup.cs
- Expressions.cs
- ConsoleKeyInfo.cs
- GPPOINT.cs
- SoapFault.cs
- MimePart.cs
- EmptyEnumerator.cs
- TraceLog.cs
- SqlFacetAttribute.cs
- Timer.cs
- PublisherMembershipCondition.cs
- StringStorage.cs
- ProviderSettingsCollection.cs
- MenuCommand.cs
- VisualBrush.cs
- StringFormat.cs
- RegexGroupCollection.cs
- UInt32Converter.cs
- TemplatedWizardStep.cs
- EncoderFallback.cs
- TableParagraph.cs
- RegexRunnerFactory.cs
- AssemblyResourceLoader.cs
- WindowsFormsSynchronizationContext.cs
- ImageConverter.cs
- GridViewEditEventArgs.cs
- SmtpNegotiateAuthenticationModule.cs
- XamlToRtfParser.cs
- InteropExecutor.cs
- XmlWriterDelegator.cs
- GestureRecognizer.cs
- RewritingSimplifier.cs
- UnsafeNativeMethods.cs
- _LocalDataStoreMgr.cs
- EditorPartChrome.cs
- CompensatableTransactionScopeActivity.cs
- ToolStripDropDownDesigner.cs
- ObservableCollection.cs
- ExceptionUtil.cs
- FuncCompletionCallbackWrapper.cs
- XmlSchemaSimpleContentRestriction.cs
- SchemaTableOptionalColumn.cs
- SerializationObjectManager.cs
- PhoneCall.cs
- IIS7WorkerRequest.cs
- EntityDataSource.cs
- TimeZone.cs
- DataServiceExpressionVisitor.cs
- ConfigXmlWhitespace.cs
- MissingMemberException.cs
- KeyGesture.cs
- BitmapEffectCollection.cs
- ObjectContextServiceProvider.cs
- ObjectDataSource.cs
- DirectoryNotFoundException.cs
- SystemBrushes.cs
- DataObjectEventArgs.cs
- StringTraceRecord.cs
- TextParentUndoUnit.cs
- UserControlParser.cs
- SmtpSection.cs
- EntityAdapter.cs
- CodeBinaryOperatorExpression.cs
- SqlCacheDependencySection.cs
- TextRangeProviderWrapper.cs
- PrintControllerWithStatusDialog.cs
- XmlNamespaceDeclarationsAttribute.cs