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
- ArrayExtension.cs
- GridViewDeletedEventArgs.cs
- Exceptions.cs
- PictureBox.cs
- EventManager.cs
- TextEditorCharacters.cs
- ColorConvertedBitmap.cs
- RecipientInfo.cs
- WmlPanelAdapter.cs
- InlineCategoriesDocument.cs
- DbProviderServices.cs
- CopyCodeAction.cs
- DesignerTransaction.cs
- CngKeyBlobFormat.cs
- DataGridParentRows.cs
- COM2PropertyDescriptor.cs
- SecurityKeyUsage.cs
- HealthMonitoringSection.cs
- CompilerGlobalScopeAttribute.cs
- NameObjectCollectionBase.cs
- UnaryExpression.cs
- PartialCachingAttribute.cs
- HMACRIPEMD160.cs
- PrincipalPermission.cs
- HttpCookiesSection.cs
- _NestedMultipleAsyncResult.cs
- UnknownBitmapDecoder.cs
- ConfigXmlAttribute.cs
- RandomNumberGenerator.cs
- DataSourceCacheDurationConverter.cs
- DataGridViewAdvancedBorderStyle.cs
- HttpHandlerAction.cs
- Array.cs
- WebConfigurationHostFileChange.cs
- PerfCounters.cs
- ResourcePermissionBaseEntry.cs
- HostedAspNetEnvironment.cs
- ChameleonKey.cs
- MultiSelectRootGridEntry.cs
- ListViewItem.cs
- TextSelectionHighlightLayer.cs
- WindowsIdentity.cs
- ExpressionConverter.cs
- SelectionEditor.cs
- RSAOAEPKeyExchangeFormatter.cs
- DataSourceXmlClassAttribute.cs
- DataGridHeaderBorder.cs
- TrackBar.cs
- ContextBase.cs
- BoundPropertyEntry.cs
- Tablet.cs
- SingleStorage.cs
- SettingsSavedEventArgs.cs
- DateTimeStorage.cs
- ClientProxyGenerator.cs
- ResourceManager.cs
- Variable.cs
- RoutedEventValueSerializer.cs
- RoutedUICommand.cs
- LocalFileSettingsProvider.cs
- AuthenticatingEventArgs.cs
- DesignTimeTemplateParser.cs
- ModelChangedEventArgsImpl.cs
- WebColorConverter.cs
- EncryptedReference.cs
- HttpResponseInternalWrapper.cs
- ReadonlyMessageFilter.cs
- ArrayWithOffset.cs
- BoolExpressionVisitors.cs
- Parser.cs
- ConstantExpression.cs
- UnmanagedBitmapWrapper.cs
- IndexingContentUnit.cs
- KnowledgeBase.cs
- SkewTransform.cs
- XamlDesignerSerializationManager.cs
- RightsManagementInformation.cs
- HttpModuleActionCollection.cs
- TextHidden.cs
- AmbientLight.cs
- FormView.cs
- StylusPointDescription.cs
- XmlSchemaSimpleContent.cs
- BasicHttpBindingElement.cs
- SqlFunctions.cs
- HwndMouseInputProvider.cs
- MD5CryptoServiceProvider.cs
- IndentedWriter.cs
- DependencyProperty.cs
- TransformPatternIdentifiers.cs
- DataBoundLiteralControl.cs
- TextEditorSpelling.cs
- ObjectDataSourceMethodEditor.cs
- DataBoundControlHelper.cs
- Line.cs
- backend.cs
- TypeDelegator.cs
- RelationshipConstraintValidator.cs
- mediapermission.cs
- ActivityCodeDomReferenceService.cs