Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / ProtocolsConfigurationEntry.cs / 2 / ProtocolsConfigurationEntry.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.IO; using System.Runtime.Serialization.Formatters; using System.Threading; using System.Runtime.InteropServices; using System.ComponentModel; using System.Collections; using System.Configuration; using System.Reflection; using System.Globalization; using System.Web.Hosting; using System.Web.Security; using System.Web.Util; using System.Xml; internal class ProtocolsConfigurationEntry { private String _id; private String _processHandlerTypeName; private Type _processHandlerType; private String _appDomainHandlerTypeName; private Type _appDomainHandlerType; private bool _typesValidated; private String _configFileName; private int _configFileLine; internal ProtocolsConfigurationEntry( String id, String processHandlerType, String appDomainHandlerType, bool validate, String configFileName, int configFileLine) { _id = id; _processHandlerTypeName = processHandlerType; _appDomainHandlerTypeName = appDomainHandlerType; _configFileName = configFileName; _configFileLine = configFileLine; if (validate) { ValidateTypes(); } } private void ValidateTypes() { if (_typesValidated) return; // check process protocol handler Type processHandlerType; try { processHandlerType = Type.GetType(_processHandlerTypeName, true /*throwOnError*/); } catch (Exception e) { throw new ConfigurationErrorsException(e.Message, e, _configFileName, _configFileLine); } HandlerBase.CheckAssignableType(_configFileName, _configFileLine, typeof(ProcessProtocolHandler), processHandlerType); // check app domain protocol handler Type appDomainHandlerType; try { appDomainHandlerType = Type.GetType(_appDomainHandlerTypeName, true /*throwOnError*/); } catch (Exception e) { throw new ConfigurationErrorsException(e.Message, e, _configFileName, _configFileLine); } HandlerBase.CheckAssignableType(_configFileName, _configFileLine, typeof(AppDomainProtocolHandler), appDomainHandlerType); // remember types _processHandlerType = processHandlerType; _appDomainHandlerType = appDomainHandlerType; _typesValidated = true; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeTypeDeclarationCollection.cs
- Double.cs
- WebPartMenu.cs
- ValidationEventArgs.cs
- ISFTagAndGuidCache.cs
- HttpTransportBindingElement.cs
- MethodBody.cs
- InfiniteIntConverter.cs
- InfoCardProofToken.cs
- PointValueSerializer.cs
- CompositeFontInfo.cs
- ArgIterator.cs
- AppSettingsExpressionEditor.cs
- ColumnResult.cs
- AuthenticatingEventArgs.cs
- DataSysAttribute.cs
- CodeArrayIndexerExpression.cs
- PageVisual.cs
- Int16Animation.cs
- MessageBox.cs
- SafeLocalMemHandle.cs
- CellParaClient.cs
- InfoCardSymmetricAlgorithm.cs
- FloaterParaClient.cs
- CodeAttributeArgument.cs
- FreezableDefaultValueFactory.cs
- DataMisalignedException.cs
- SerializationObjectManager.cs
- ObjectConverter.cs
- LabelDesigner.cs
- HitTestParameters3D.cs
- SecurityKeyType.cs
- IIS7UserPrincipal.cs
- ImpersonateTokenRef.cs
- ShapingEngine.cs
- MainMenu.cs
- ConfigurationStrings.cs
- HyperLinkField.cs
- ProtocolReflector.cs
- WhereQueryOperator.cs
- ParentUndoUnit.cs
- EncryptedType.cs
- RedirectionProxy.cs
- XamlSerializationHelper.cs
- DataRowComparer.cs
- Decimal.cs
- DataKeyArray.cs
- ConnectionStringsExpressionEditor.cs
- SqlCharStream.cs
- PopupRoot.cs
- ObjectDataSourceView.cs
- DataSvcMapFileSerializer.cs
- WindowsMenu.cs
- XXXOnTypeBuilderInstantiation.cs
- SettingsPropertyValue.cs
- DefaultMemberAttribute.cs
- DependencyObjectPropertyDescriptor.cs
- HMACSHA1.cs
- WorkflowInstanceTerminatedRecord.cs
- RowCache.cs
- RawAppCommandInputReport.cs
- CategoryGridEntry.cs
- TableLayoutColumnStyleCollection.cs
- IxmlLineInfo.cs
- BlurEffect.cs
- Stylesheet.cs
- AdjustableArrowCap.cs
- VerbConverter.cs
- Schema.cs
- DataGridViewLinkColumn.cs
- StringResourceManager.cs
- StrongNameMembershipCondition.cs
- MiniConstructorInfo.cs
- LoginCancelEventArgs.cs
- CreateInstanceBinder.cs
- KnownTypeDataContractResolver.cs
- MailAddress.cs
- DataRecord.cs
- WarningException.cs
- CustomBinding.cs
- ProxyGenerator.cs
- EventWaitHandleSecurity.cs
- ExtenderHelpers.cs
- RelatedEnd.cs
- ContentType.cs
- Pool.cs
- IndividualDeviceConfig.cs
- _HelperAsyncResults.cs
- UrlPropertyAttribute.cs
- ProviderSettingsCollection.cs
- KeyedQueue.cs
- ToolBarOverflowPanel.cs
- PreviewPageInfo.cs
- SuppressMessageAttribute.cs
- ProjectionCamera.cs
- FileDataSourceCache.cs
- _NTAuthentication.cs
- dbdatarecord.cs
- StorageEntitySetMapping.cs
- StylusPlugin.cs