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
- ServiceReference.cs
- SafeEventLogWriteHandle.cs
- TlsSspiNegotiation.cs
- MultiView.cs
- EntityContainerRelationshipSet.cs
- DataGridViewSortCompareEventArgs.cs
- InkCanvas.cs
- Trace.cs
- HTMLTextWriter.cs
- CanonicalFontFamilyReference.cs
- ZeroOpNode.cs
- ResourceWriter.cs
- ResourceContainer.cs
- BaseUriHelper.cs
- ReachFixedPageSerializer.cs
- AuthStoreRoleProvider.cs
- XmlMapping.cs
- CompiledScopeCriteria.cs
- MessageSmuggler.cs
- RectValueSerializer.cs
- TypedTableHandler.cs
- ConfigurationValidatorAttribute.cs
- SqlRecordBuffer.cs
- StickyNoteContentControl.cs
- sqlinternaltransaction.cs
- InputLangChangeRequestEvent.cs
- ObjectDataSourceView.cs
- DataGrid.cs
- BamlResourceSerializer.cs
- SignatureDescription.cs
- FormatSettings.cs
- QueueProcessor.cs
- translator.cs
- MappingItemCollection.cs
- SizeF.cs
- CryptoStream.cs
- ToolboxItemCollection.cs
- SuppressIldasmAttribute.cs
- DbQueryCommandTree.cs
- LayoutEditorPart.cs
- InvalidEnumArgumentException.cs
- AssemblyBuilderData.cs
- CompositeDataBoundControl.cs
- DetailsViewDeletedEventArgs.cs
- ParameterDataSourceExpression.cs
- AnimatedTypeHelpers.cs
- PromptStyle.cs
- ObjectSpanRewriter.cs
- MessageProtectionOrder.cs
- ValidationRuleCollection.cs
- LingerOption.cs
- BitmapSizeOptions.cs
- VerticalAlignConverter.cs
- HttpSocketManager.cs
- FormatConvertedBitmap.cs
- MutexSecurity.cs
- HttpRuntime.cs
- ExceptionValidationRule.cs
- IItemProperties.cs
- LoginAutoFormat.cs
- ColumnClickEvent.cs
- GridItemCollection.cs
- ToolBarDesigner.cs
- DependentTransaction.cs
- SoapExtensionImporter.cs
- SqlXmlStorage.cs
- ObjectIDGenerator.cs
- xdrvalidator.cs
- Trace.cs
- AsyncContentLoadedEventArgs.cs
- CreateUserWizard.cs
- GridSplitter.cs
- OleDbWrapper.cs
- TypeReference.cs
- NativeMethods.cs
- SymmetricAlgorithm.cs
- DiagnosticsElement.cs
- UnauthorizedAccessException.cs
- PersonalizationEntry.cs
- InternalTransaction.cs
- RoutedEventValueSerializer.cs
- GcHandle.cs
- ApplicationSettingsBase.cs
- CacheChildrenQuery.cs
- _ProxyRegBlob.cs
- SoapElementAttribute.cs
- InstancePersistenceCommand.cs
- AssemblyBuilder.cs
- RangeValidator.cs
- AutomationPatternInfo.cs
- TypeDescriptionProviderAttribute.cs
- IndexedString.cs
- DataTableReaderListener.cs
- EncodingDataItem.cs
- TreeNodeEventArgs.cs
- HelpEvent.cs
- DBSchemaRow.cs
- FamilyTypeface.cs
- CounterSample.cs
- RelatedCurrencyManager.cs