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
- PackUriHelper.cs
- GeneratedView.cs
- HMAC.cs
- ScriptResourceMapping.cs
- WaitForChangedResult.cs
- ServiceOperationListItem.cs
- ExpressionNormalizer.cs
- ToolBarTray.cs
- ConcurrentQueue.cs
- TemplateKeyConverter.cs
- DiscoveryEndpoint.cs
- HttpListenerContext.cs
- XpsS0ValidatingLoader.cs
- XmlLanguageConverter.cs
- _LocalDataStore.cs
- AutoGeneratedFieldProperties.cs
- CompilerGeneratedAttribute.cs
- AddInPipelineAttributes.cs
- FlagsAttribute.cs
- SqlDataRecord.cs
- TrueReadOnlyCollection.cs
- FixedSOMPageElement.cs
- ProcessHost.cs
- WindowsListViewItemCheckBox.cs
- SqlDataSourceConfigureFilterForm.cs
- HtmlMeta.cs
- SkipStoryboardToFill.cs
- DictionarySurrogate.cs
- PtsHost.cs
- ToolConsole.cs
- ResizeBehavior.cs
- LightweightEntityWrapper.cs
- ListViewSelectEventArgs.cs
- AssemblyAttributesGoHere.cs
- TcpHostedTransportConfiguration.cs
- Bits.cs
- DbMetaDataFactory.cs
- XmlSchemaAttributeGroupRef.cs
- LoginView.cs
- ThreadStateException.cs
- Form.cs
- GestureRecognitionResult.cs
- Viewport3DAutomationPeer.cs
- MessageSmuggler.cs
- SafeRightsManagementHandle.cs
- Tuple.cs
- BitmapEffect.cs
- XmlFormatWriterGenerator.cs
- VisualStyleInformation.cs
- CapiSymmetricAlgorithm.cs
- PathFigure.cs
- AndCondition.cs
- RelatedEnd.cs
- AppearanceEditorPart.cs
- ListBindableAttribute.cs
- FragmentQuery.cs
- OletxTransactionManager.cs
- QueueProcessor.cs
- OSFeature.cs
- StatusBarItem.cs
- MatchingStyle.cs
- DataStorage.cs
- CellTreeNodeVisitors.cs
- ScrollContentPresenter.cs
- ConfigurationErrorsException.cs
- PerformanceCounterPermissionAttribute.cs
- RightNameExpirationInfoPair.cs
- AlignmentYValidation.cs
- RtfFormatStack.cs
- WindowsRegion.cs
- ImageConverter.cs
- ExceptionUtil.cs
- ThemeInfoAttribute.cs
- BmpBitmapEncoder.cs
- HtmlProps.cs
- KeyManager.cs
- ClientRequest.cs
- BatchStream.cs
- WebRequestModulesSection.cs
- EventDescriptor.cs
- Constants.cs
- TraceHwndHost.cs
- ConfigXmlAttribute.cs
- OracleString.cs
- ResourceCategoryAttribute.cs
- OracleDataReader.cs
- ConfigPathUtility.cs
- GroupStyle.cs
- WorkflowTraceTransfer.cs
- ContextInformation.cs
- TreeViewItem.cs
- QuotaExceededException.cs
- Pair.cs
- PartialList.cs
- IISMapPath.cs
- DocumentSequenceHighlightLayer.cs
- GroupLabel.cs
- VideoDrawing.cs
- ISessionStateStore.cs
- SqlDataSourceEnumerator.cs