Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / CommonEndpointBehaviorElement.cs / 1 / CommonEndpointBehaviorElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.Configuration; using System.Xml; public partial class CommonEndpointBehaviorElement : ServiceModelExtensionCollectionElement{ public CommonEndpointBehaviorElement() : base(ConfigurationStrings.BehaviorExtensions) { } // Verify that the behavior being added implements IEndpointBehavior public override void Add(BehaviorExtensionElement element) { // If element is null, let base.Add() throw for consistency reasons if (null != element) { if (!typeof(System.ServiceModel.Description.IEndpointBehavior).IsAssignableFrom(element.BehaviorType)) { #pragma warning disable 56506 //[....]; element.ElementInformation is guaranteed to be non-null(System.Configuration) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigInvalidCommonEndpointBehaviorType, element.ConfigurationElementName, typeof(System.ServiceModel.Description.IEndpointBehavior).FullName), element.ElementInformation.Source, element.ElementInformation.LineNumber)); #pragma warning restore } } base.Add(element); } // Verify that the behavior being added implements IEndpointBehavior public override bool CanAdd(BehaviorExtensionElement element) { // If element is null, let base.CanAdd() throw for consistency reasons if (null != element) { if (!typeof(System.ServiceModel.Description.IEndpointBehavior).IsAssignableFrom(element.BehaviorType)) { #pragma warning disable 56506 //[....]; element.ElementInformation is guaranteed to be non-null(System.Configuration) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigInvalidCommonEndpointBehaviorType, element.ConfigurationElementName, typeof(System.ServiceModel.Description.IEndpointBehavior).FullName), element.ElementInformation.Source, element.ElementInformation.LineNumber)); #pragma warning restore } } return base.CanAdd(element); } } } // 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
- BinaryObjectInfo.cs
- UndoManager.cs
- messageonlyhwndwrapper.cs
- StructuredCompositeActivityDesigner.cs
- UniqueIdentifierService.cs
- safesecurityhelperavalon.cs
- MediaPlayerState.cs
- ResourcePool.cs
- TypeConverterValueSerializer.cs
- ViewBase.cs
- ObjectParameterCollection.cs
- DebuggerAttributes.cs
- PrimitiveList.cs
- InternalTransaction.cs
- Util.cs
- FloaterBaseParaClient.cs
- ClientScriptManager.cs
- ErrorTableItemStyle.cs
- DataGridTablesFactory.cs
- PrivilegedConfigurationManager.cs
- XslTransform.cs
- FieldNameLookup.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RowToFieldTransformer.cs
- UnsafeNativeMethods.cs
- TrustManager.cs
- SerializationFieldInfo.cs
- ListViewItemSelectionChangedEvent.cs
- Transform3D.cs
- SQLRoleProvider.cs
- TextServicesPropertyRanges.cs
- SystemSounds.cs
- EncodingInfo.cs
- AssemblyResourceLoader.cs
- ItemMap.cs
- Vector3DAnimationUsingKeyFrames.cs
- DataComponentMethodGenerator.cs
- TextParentUndoUnit.cs
- Property.cs
- ToolStripRenderer.cs
- CapacityStreamGeometryContext.cs
- ColumnMapProcessor.cs
- DiscoveryDocumentLinksPattern.cs
- WebPartAuthorizationEventArgs.cs
- EntityDataSourceReferenceGroup.cs
- ListViewInsertEventArgs.cs
- TimeStampChecker.cs
- MetadataFile.cs
- UnescapedXmlDiagnosticData.cs
- FlowNode.cs
- BitmapInitialize.cs
- PaginationProgressEventArgs.cs
- HwndAppCommandInputProvider.cs
- ReachVisualSerializerAsync.cs
- EventLogEntryCollection.cs
- CookielessData.cs
- DateTimeParse.cs
- UncommonField.cs
- odbcmetadatafactory.cs
- DataGridViewCellCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- BitmapCacheBrush.cs
- _SingleItemRequestCache.cs
- PartEditor.cs
- MeshGeometry3D.cs
- TreeNodeEventArgs.cs
- SynchronizedDispatch.cs
- SequentialActivityDesigner.cs
- DocumentSequence.cs
- NetworkInformationPermission.cs
- ReferenceConverter.cs
- Wizard.cs
- StylusPointProperty.cs
- EmptyStringExpandableObjectConverter.cs
- AnonymousIdentificationModule.cs
- WindowsListViewGroupSubsetLink.cs
- Literal.cs
- ServiceElement.cs
- ParseHttpDate.cs
- Encoding.cs
- DisableDpiAwarenessAttribute.cs
- ReversePositionQuery.cs
- ConditionedDesigner.cs
- HttpRequest.cs
- SystemTcpStatistics.cs
- EmptyEnumerable.cs
- PackUriHelper.cs
- SerializationObjectManager.cs
- peersecurityelement.cs
- xml.cs
- SerializationFieldInfo.cs
- PeerNameRecord.cs
- FloaterParaClient.cs
- ComboBoxDesigner.cs
- Container.cs
- Command.cs
- InvalidDataException.cs
- listitem.cs
- AmbientLight.cs
- UserMapPath.cs