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
- ICollection.cs
- DefaultProxySection.cs
- SchemaImporter.cs
- SequentialOutput.cs
- HandlerFactoryCache.cs
- HttpPostedFileWrapper.cs
- ShortcutKeysEditor.cs
- Crc32.cs
- XamlBuildTaskServices.cs
- ProcessHostMapPath.cs
- SecurityResources.cs
- DiscoveryEndpointValidator.cs
- RemoteWebConfigurationHostStream.cs
- AmbientLight.cs
- EventLogEntryCollection.cs
- TransformerInfoCollection.cs
- HttpStreamXmlDictionaryWriter.cs
- KeyValuePair.cs
- ThrowHelper.cs
- Win32SafeHandles.cs
- NetworkCredential.cs
- CellParaClient.cs
- DesignTimeVisibleAttribute.cs
- Set.cs
- CompilerParameters.cs
- TypeForwardedToAttribute.cs
- SelfIssuedAuthProofToken.cs
- cookieexception.cs
- mactripleDES.cs
- ControlCollection.cs
- ReliabilityContractAttribute.cs
- ProcessManager.cs
- ParameterInfo.cs
- compensatingcollection.cs
- Int16.cs
- TableLayoutStyle.cs
- Package.cs
- NestPullup.cs
- XmlCDATASection.cs
- BuildProviderUtils.cs
- TypeInitializationException.cs
- XmlNotation.cs
- FullTrustAssemblyCollection.cs
- SHA384.cs
- LinqDataSourceInsertEventArgs.cs
- TraceEventCache.cs
- SqlDeflator.cs
- DocumentReferenceCollection.cs
- TypeListConverter.cs
- SoapAttributeAttribute.cs
- SimpleType.cs
- TransformerInfo.cs
- ClientData.cs
- MissingManifestResourceException.cs
- SqlDependencyUtils.cs
- ResourceAttributes.cs
- StringKeyFrameCollection.cs
- EnumDataContract.cs
- SolidColorBrush.cs
- CodeStatementCollection.cs
- QilLiteral.cs
- ToolStripItemRenderEventArgs.cs
- CodeLabeledStatement.cs
- SizeAnimationUsingKeyFrames.cs
- FileDialog_Vista.cs
- ArrayHelper.cs
- Dispatcher.cs
- _NegoState.cs
- AppDomainEvidenceFactory.cs
- HwndHost.cs
- ConnectionStringsExpressionBuilder.cs
- AnyReturnReader.cs
- LoginViewDesigner.cs
- ProfilePropertySettings.cs
- PasswordTextContainer.cs
- ComponentSerializationService.cs
- WorkerRequest.cs
- SectionUpdates.cs
- ConfigurationValidatorAttribute.cs
- PeerApplicationLaunchInfo.cs
- MemoryRecordBuffer.cs
- MultipartContentParser.cs
- SqlBooleanizer.cs
- DateTimeOffsetStorage.cs
- WebPartCollection.cs
- DesignerCapabilities.cs
- ConfigXmlSignificantWhitespace.cs
- BooleanExpr.cs
- RuleInfoComparer.cs
- ThumbAutomationPeer.cs
- SplitterPanel.cs
- SerialPort.cs
- Quad.cs
- HtmlTextArea.cs
- DynamicPropertyHolder.cs
- EdmToObjectNamespaceMap.cs
- ComponentGuaranteesAttribute.cs
- QuestionEventArgs.cs
- ZipFileInfoCollection.cs
- DependencyPropertyAttribute.cs