Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ServiceEndpointElementCollection.cs / 1 / ServiceEndpointElementCollection.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.ServiceModel.Channels; using System.ServiceModel.Description; using System.Collections; using System.Configuration; using System.Globalization; [ConfigurationCollection(typeof(ServiceEndpointElement), AddItemName = ConfigurationStrings.Endpoint)] public sealed class ServiceEndpointElementCollection : ServiceModelEnhancedConfigurationElementCollection{ public ServiceEndpointElementCollection() : base(ConfigurationStrings.Endpoint) {} protected override bool ThrowOnDuplicate { get {return false; } } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } ServiceEndpointElement configElementKey = (ServiceEndpointElement) element; // We need to provide something sufficiently unique for the underlying system. // Conceptually, this is an ever-expanding collection. // There is no logical object key for this collection. return string.Format(CultureInfo.InvariantCulture, "address:{0};bindingConfiguration{1};bindingName:{2};bindingNamespace:{3};bindingSectionName:{4};contractType:{5};", configElementKey.Address.ToString().ToUpperInvariant(), configElementKey.BindingConfiguration, configElementKey.BindingName, configElementKey.BindingNamespace, configElementKey.Binding, configElementKey.Contract); } } } // 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
- ClientTarget.cs
- GridItemProviderWrapper.cs
- CheckBox.cs
- ProtocolsConfiguration.cs
- PatternMatcher.cs
- ProxyWebPartManager.cs
- RSAProtectedConfigurationProvider.cs
- ApplicationBuildProvider.cs
- ToolboxItemLoader.cs
- DbTypeMap.cs
- Collection.cs
- MessagePartProtectionMode.cs
- ParentQuery.cs
- wgx_exports.cs
- EventLogPermissionAttribute.cs
- WebPartPersonalization.cs
- ValueSerializer.cs
- UIntPtr.cs
- SystemIPGlobalStatistics.cs
- MsmqAuthenticationMode.cs
- RC2.cs
- documentsequencetextview.cs
- PropertyEmitterBase.cs
- ToolStripRendererSwitcher.cs
- BuildProvidersCompiler.cs
- XmlSchemaSimpleTypeUnion.cs
- RequestQueryProcessor.cs
- DesignerLoader.cs
- ExpandedProjectionNode.cs
- httpstaticobjectscollection.cs
- FilterQuery.cs
- AxisAngleRotation3D.cs
- SelectionManager.cs
- LookupNode.cs
- CroppedBitmap.cs
- FileClassifier.cs
- DataStreams.cs
- XpsS0ValidatingLoader.cs
- MissingMethodException.cs
- Context.cs
- CheckedListBox.cs
- DataGridViewCellConverter.cs
- SynchronizingStream.cs
- KnownColorTable.cs
- keycontainerpermission.cs
- BufferBuilder.cs
- OleAutBinder.cs
- InProcStateClientManager.cs
- QueryInterceptorAttribute.cs
- Int32Converter.cs
- IntSecurity.cs
- MDIWindowDialog.cs
- _MultipleConnectAsync.cs
- InputEventArgs.cs
- MailWebEventProvider.cs
- UIElementParagraph.cs
- UriWriter.cs
- BulletedListEventArgs.cs
- HashStream.cs
- EffectiveValueEntry.cs
- Aggregates.cs
- SecurityTokenTypes.cs
- ListItemCollection.cs
- ToolStripItemDataObject.cs
- QilScopedVisitor.cs
- DataGridViewElement.cs
- XmlILIndex.cs
- QueryMatcher.cs
- HistoryEventArgs.cs
- PaintValueEventArgs.cs
- SmiSettersStream.cs
- FolderBrowserDialog.cs
- AsyncOperationManager.cs
- PeerApplication.cs
- DoubleAnimationUsingKeyFrames.cs
- WebRequest.cs
- ImageSourceConverter.cs
- RowParagraph.cs
- Figure.cs
- PrincipalPermission.cs
- NullableBoolConverter.cs
- SchemaImporterExtensionElement.cs
- ToolbarAUtomationPeer.cs
- WorkflowApplicationTerminatedException.cs
- EntityDataSourceWrapperCollection.cs
- TdsParserSafeHandles.cs
- TCPListener.cs
- GPRECTF.cs
- CodeVariableDeclarationStatement.cs
- VectorAnimation.cs
- Attributes.cs
- CollectionView.cs
- Figure.cs
- TextServicesLoader.cs
- Select.cs
- HttpMethodAttribute.cs
- Types.cs
- CallSiteBinder.cs
- ScanQueryOperator.cs
- EndOfStreamException.cs