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
- MatcherBuilder.cs
- IndicCharClassifier.cs
- EventProviderWriter.cs
- AdornedElementPlaceholder.cs
- ToolStripRendererSwitcher.cs
- Zone.cs
- grammarelement.cs
- ListDictionaryInternal.cs
- ToolStripRendererSwitcher.cs
- XmlSchemaSimpleContentExtension.cs
- CategoryNameCollection.cs
- DateTimeFormatInfoScanner.cs
- UnsafeNativeMethodsMilCoreApi.cs
- CompilerScopeManager.cs
- ApplicationDirectoryMembershipCondition.cs
- DetailsViewRowCollection.cs
- XmlDomTextWriter.cs
- FormViewUpdateEventArgs.cs
- AssemblyCache.cs
- BitConverter.cs
- MulticastOption.cs
- Vector3DIndependentAnimationStorage.cs
- Listbox.cs
- PageTheme.cs
- DropDownButton.cs
- SizeConverter.cs
- SchemaImporterExtensionElement.cs
- AudioSignalProblemOccurredEventArgs.cs
- PrintDocument.cs
- Span.cs
- AutomationPropertyInfo.cs
- WindowsListView.cs
- DataGridViewRowHeaderCell.cs
- BinaryUtilClasses.cs
- WorkflowPageSetupDialog.cs
- XmlAtomicValue.cs
- Directory.cs
- querybuilder.cs
- XPathDocument.cs
- TextBlock.cs
- RepeatInfo.cs
- WindowsListViewScroll.cs
- X509ChainElement.cs
- Debug.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CancelEventArgs.cs
- ProcessExitedException.cs
- RtfToken.cs
- DecodeHelper.cs
- _SingleItemRequestCache.cs
- DeviceSpecificChoice.cs
- BindingCompleteEventArgs.cs
- oledbconnectionstring.cs
- File.cs
- IApplicationTrustManager.cs
- TextWriter.cs
- BatchParser.cs
- SQLSingle.cs
- IsolatedStorageFile.cs
- ResolvedKeyFrameEntry.cs
- PartitionedStreamMerger.cs
- WebPartDescription.cs
- DataObjectSettingDataEventArgs.cs
- LineGeometry.cs
- SqlDataSourceCache.cs
- ObjectConverter.cs
- FilterException.cs
- ExecutionEngineException.cs
- CompatibleComparer.cs
- webproxy.cs
- DataStorage.cs
- MediaPlayer.cs
- PerformanceCounterLib.cs
- DefaultAuthorizationContext.cs
- DataComponentNameHandler.cs
- BaseConfigurationRecord.cs
- ParameterBuilder.cs
- TimeSpanConverter.cs
- OleDbCommandBuilder.cs
- PointLight.cs
- GACMembershipCondition.cs
- EDesignUtil.cs
- RequestValidator.cs
- BadImageFormatException.cs
- System.Data_BID.cs
- ExpressionNormalizer.cs
- MaskInputRejectedEventArgs.cs
- CacheAxisQuery.cs
- ToolBarPanel.cs
- ContextMenuService.cs
- serverconfig.cs
- BitmapEffectDrawingContent.cs
- AlgoModule.cs
- HotSpotCollectionEditor.cs
- ErrorWebPart.cs
- DataStorage.cs
- MasterPage.cs
- SmiEventSink.cs
- FilterableAttribute.cs
- ManifestBasedResourceGroveler.cs