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
- CodeGenerator.cs
- CompoundFileDeflateTransform.cs
- ArraySet.cs
- ExpressionConverter.cs
- UInt32.cs
- XmlConverter.cs
- initElementDictionary.cs
- GeneralTransform3D.cs
- XmlHierarchicalEnumerable.cs
- XmlMembersMapping.cs
- CodeMemberField.cs
- XmlParser.cs
- ProcessHostConfigUtils.cs
- TrustLevel.cs
- ObjectItemNoOpAssemblyLoader.cs
- FixedSOMPageConstructor.cs
- CounterSampleCalculator.cs
- HtmlControl.cs
- CapiSafeHandles.cs
- TargetConverter.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- BufferModesCollection.cs
- GB18030Encoding.cs
- StringPropertyBuilder.cs
- QilStrConcat.cs
- SQLStringStorage.cs
- DetailsViewUpdateEventArgs.cs
- WindowsFormsLinkLabel.cs
- DbConnectionPoolCounters.cs
- GlyphShapingProperties.cs
- HttpGetProtocolImporter.cs
- DoubleLinkListEnumerator.cs
- TagElement.cs
- EventHandlerList.cs
- BitmapImage.cs
- AutomationPropertyInfo.cs
- SortDescriptionCollection.cs
- TransactionContext.cs
- TdsParserStateObject.cs
- QilReplaceVisitor.cs
- Metadata.cs
- IsolationInterop.cs
- LookupBindingPropertiesAttribute.cs
- BamlLocalizableResourceKey.cs
- GPRECT.cs
- ContextStaticAttribute.cs
- FontStretches.cs
- Int32Storage.cs
- NativeMethods.cs
- CanonicalFontFamilyReference.cs
- ObjectPersistData.cs
- WSHttpTransportSecurityElement.cs
- PropertyInformationCollection.cs
- TypeElementCollection.cs
- RankException.cs
- LOSFormatter.cs
- ListBindableAttribute.cs
- XomlSerializationHelpers.cs
- FlowDocumentPaginator.cs
- Transform3DCollection.cs
- BookmarkManager.cs
- ConnectionPointGlyph.cs
- WorkflowFormatterBehavior.cs
- HttpHandlerAction.cs
- DataKeyCollection.cs
- SqlUtils.cs
- WebSysDisplayNameAttribute.cs
- SqlTransaction.cs
- DockPattern.cs
- XmlnsCompatibleWithAttribute.cs
- SpnEndpointIdentity.cs
- WindowsListViewItemCheckBox.cs
- XPathSingletonIterator.cs
- Encoding.cs
- PerspectiveCamera.cs
- SignatureConfirmations.cs
- InstanceDataCollectionCollection.cs
- EntitySqlQueryCacheKey.cs
- _RequestLifetimeSetter.cs
- TraceLevelHelper.cs
- SoapAttributes.cs
- DataGridViewButtonCell.cs
- PrivilegedConfigurationManager.cs
- PropertyStore.cs
- Highlights.cs
- EntityFunctions.cs
- TextServicesLoader.cs
- OdbcParameterCollection.cs
- CompilerWrapper.cs
- FaultImportOptions.cs
- ToolStripStatusLabel.cs
- EventListener.cs
- SingleTagSectionHandler.cs
- MaskPropertyEditor.cs
- RequestCacheEntry.cs
- XmlWriterTraceListener.cs
- StandardCommandToolStripMenuItem.cs
- SQLBoolean.cs
- VectorKeyFrameCollection.cs
- LambdaCompiler.Unary.cs