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
- NativeMethods.cs
- RegistrationServices.cs
- ColumnPropertiesGroup.cs
- SerializerDescriptor.cs
- ByteKeyFrameCollection.cs
- UnsafeNativeMethods.cs
- FlowDocument.cs
- SmiMetaData.cs
- CollectionViewSource.cs
- TableNameAttribute.cs
- TemplateColumn.cs
- InteropTrackingRecord.cs
- ResourceContainer.cs
- PlanCompilerUtil.cs
- OleDbCommand.cs
- SecurityUtils.cs
- FixedDocumentSequencePaginator.cs
- MeasureItemEvent.cs
- OdbcInfoMessageEvent.cs
- DbProviderFactory.cs
- RSAPKCS1SignatureDeformatter.cs
- DataServiceEntityAttribute.cs
- PreviewPageInfo.cs
- PathSegment.cs
- WebPartEditVerb.cs
- HijriCalendar.cs
- StringTraceRecord.cs
- ThreadStartException.cs
- DataDocumentXPathNavigator.cs
- AdRotator.cs
- DrawingCollection.cs
- BinaryObjectInfo.cs
- SqlBooleanizer.cs
- WindowsGraphicsCacheManager.cs
- TableItemPatternIdentifiers.cs
- PersonalizationStateInfo.cs
- CqlLexer.cs
- GridEntryCollection.cs
- DoubleUtil.cs
- InputProviderSite.cs
- HtmlImage.cs
- InternalMappingException.cs
- RootProfilePropertySettingsCollection.cs
- DocumentPage.cs
- UxThemeWrapper.cs
- validationstate.cs
- RenderCapability.cs
- MsmqIntegrationSecurity.cs
- CultureMapper.cs
- WaitHandle.cs
- NetSectionGroup.cs
- MetaData.cs
- ExternalFile.cs
- DotExpr.cs
- XmlTextReader.cs
- Point3DCollection.cs
- _ConnectStream.cs
- BaseParaClient.cs
- SqlProviderManifest.cs
- MessageQueueTransaction.cs
- XmlSchemaAppInfo.cs
- XmlTypeMapping.cs
- DataGridViewCellStyle.cs
- TypeContext.cs
- XmlSerializerFactory.cs
- CustomAttribute.cs
- InternalBufferOverflowException.cs
- DispatchWrapper.cs
- KeyValueInternalCollection.cs
- TableLayoutPanelCellPosition.cs
- LingerOption.cs
- OperatorExpressions.cs
- CfgArc.cs
- SymLanguageType.cs
- Site.cs
- DesignerCategoryAttribute.cs
- DataFormat.cs
- DropTarget.cs
- ContextBase.cs
- ListViewItemEventArgs.cs
- SourceFilter.cs
- HttpTransportManager.cs
- BitmapCodecInfo.cs
- OracleConnectionFactory.cs
- Latin1Encoding.cs
- GenericTextProperties.cs
- FigureParaClient.cs
- ItemContainerGenerator.cs
- BitmapEffectInput.cs
- DataException.cs
- CompoundFileStorageReference.cs
- ImpersonateTokenRef.cs
- WorkflowApplicationException.cs
- ReferencedAssembly.cs
- StaticTextPointer.cs
- MergeFailedEvent.cs
- Int32CAMarshaler.cs
- ReferenceEqualityComparer.cs
- ControlBuilderAttribute.cs
- NumberFormatter.cs