Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DigestTraceRecordHelper.cs
- TraceLevelStore.cs
- TranslateTransform.cs
- XamlTreeBuilderBamlRecordWriter.cs
- EnterpriseServicesHelper.cs
- CqlBlock.cs
- PageParser.cs
- ProxyWebPart.cs
- ComponentEditorPage.cs
- InvokeProviderWrapper.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TraceContextEventArgs.cs
- TableDesigner.cs
- DrawingServices.cs
- DrawingContextDrawingContextWalker.cs
- SqlDataSourceCustomCommandPanel.cs
- XmlFormatExtensionPrefixAttribute.cs
- QueryContinueDragEvent.cs
- entitydatasourceentitysetnameconverter.cs
- ImageList.cs
- UriTemplateTableMatchCandidate.cs
- StringExpressionSet.cs
- SchemeSettingElementCollection.cs
- SendingRequestEventArgs.cs
- Transform.cs
- PermissionSetEnumerator.cs
- NetPeerTcpBinding.cs
- InstanceStore.cs
- NoClickablePointException.cs
- WebPartVerbCollection.cs
- AnnotationResource.cs
- DocumentViewerBaseAutomationPeer.cs
- UIAgentMonitorHandle.cs
- Latin1Encoding.cs
- DesignerDataSourceView.cs
- XsdBuildProvider.cs
- TemplatedWizardStep.cs
- SoundPlayer.cs
- NamespaceEmitter.cs
- IconConverter.cs
- XmlSchemaInclude.cs
- ObjectDataSourceView.cs
- HyperLinkStyle.cs
- Literal.cs
- WebPartConnectVerb.cs
- SettingsContext.cs
- CodeSnippetTypeMember.cs
- MetadataExporter.cs
- TabPanel.cs
- FlowStep.cs
- UriExt.cs
- WebPageTraceListener.cs
- QueryContinueDragEvent.cs
- Quaternion.cs
- ImageMap.cs
- PackageRelationshipCollection.cs
- AccessDataSourceDesigner.cs
- LinkButton.cs
- FixedSchema.cs
- PersonalizationProviderCollection.cs
- SignedInfo.cs
- ImageFormat.cs
- BaseTransportHeaders.cs
- PlatformNotSupportedException.cs
- StyleSelector.cs
- DataGridViewAdvancedBorderStyle.cs
- NonBatchDirectoryCompiler.cs
- ErrorWrapper.cs
- GAC.cs
- CopyNodeSetAction.cs
- MaskDescriptor.cs
- ProcessInfo.cs
- TripleDESCryptoServiceProvider.cs
- ConfigurationCollectionAttribute.cs
- ReflectionServiceProvider.cs
- CollectionViewGroup.cs
- CodeStatementCollection.cs
- TableCell.cs
- WebUtil.cs
- PropertyChangedEventArgs.cs
- SimpleLine.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- TcpClientCredentialType.cs
- FontWeights.cs
- OleDbPermission.cs
- PingOptions.cs
- Signature.cs
- TypeConverterValueSerializer.cs
- IInstanceTable.cs
- SafeUserTokenHandle.cs
- DataColumnMapping.cs
- counter.cs
- AsyncSerializedWorker.cs
- Mappings.cs
- SessionIDManager.cs
- BackgroundFormatInfo.cs
- DateTimeOffset.cs
- StylusPointPropertyInfoDefaults.cs
- StylusButtonEventArgs.cs
- SecurityPermission.cs