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
- AnchorEditor.cs
- WebPartConnectionsCancelEventArgs.cs
- Int16Storage.cs
- ManifestSignatureInformation.cs
- WindowsTokenRoleProvider.cs
- Keywords.cs
- SerializationStore.cs
- CodeGen.cs
- ListBox.cs
- StringToken.cs
- DataGridCellEditEndingEventArgs.cs
- BaseConfigurationRecord.cs
- SQLInt64Storage.cs
- FrameworkContentElement.cs
- SupportsEventValidationAttribute.cs
- SyndicationElementExtensionCollection.cs
- ISFTagAndGuidCache.cs
- RegexBoyerMoore.cs
- MetadataArtifactLoaderCompositeResource.cs
- NavigationWindowAutomationPeer.cs
- XmlSchemaSimpleTypeUnion.cs
- LogReserveAndAppendState.cs
- BaseParaClient.cs
- DocumentXmlWriter.cs
- DecimalConstantAttribute.cs
- RegexWriter.cs
- InternalCache.cs
- PriorityBindingExpression.cs
- MeasureData.cs
- HiddenField.cs
- OracleBFile.cs
- SQLGuid.cs
- Descriptor.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CheckBox.cs
- GenericUriParser.cs
- _LocalDataStoreMgr.cs
- TextShapeableCharacters.cs
- DeflateEmulationStream.cs
- StretchValidation.cs
- HiddenFieldPageStatePersister.cs
- NewItemsContextMenuStrip.cs
- DependencyPropertyKind.cs
- PickDesigner.xaml.cs
- ProviderUtil.cs
- WindowsListViewGroupSubsetLink.cs
- AnimationTimeline.cs
- ParameterCollection.cs
- DeleteWorkflowOwnerCommand.cs
- _ListenerResponseStream.cs
- UserControlBuildProvider.cs
- OrderedDictionaryStateHelper.cs
- MembershipSection.cs
- PartialArray.cs
- GetPageNumberCompletedEventArgs.cs
- LOSFormatter.cs
- MenuItemAutomationPeer.cs
- MsmqHostedTransportManager.cs
- SafePointer.cs
- ReplyChannelBinder.cs
- DataGridViewHitTestInfo.cs
- ResourceDisplayNameAttribute.cs
- ProxyWebPartConnectionCollection.cs
- FirstMatchCodeGroup.cs
- PlanCompilerUtil.cs
- ProjectionRewriter.cs
- CharEntityEncoderFallback.cs
- TextContainerChangedEventArgs.cs
- XmlElementList.cs
- PlanCompiler.cs
- DataGridViewCellValueEventArgs.cs
- StrongName.cs
- ApplyTemplatesAction.cs
- RSAProtectedConfigurationProvider.cs
- SiteMapProvider.cs
- ToolStripManager.cs
- RouteData.cs
- MenuItem.cs
- MatrixIndependentAnimationStorage.cs
- WindowsListBox.cs
- AssemblyAttributes.cs
- CursorEditor.cs
- PageThemeCodeDomTreeGenerator.cs
- MessageSmuggler.cs
- ToolStripInSituService.cs
- XmlSchemaSimpleContentExtension.cs
- DataServiceHostWrapper.cs
- DoubleAnimationClockResource.cs
- SecUtil.cs
- SyndicationFeed.cs
- UIElementParaClient.cs
- ContentFileHelper.cs
- IriParsingElement.cs
- RoleGroup.cs
- TreeViewCancelEvent.cs
- TiffBitmapDecoder.cs
- DecimalMinMaxAggregationOperator.cs
- PolicyChain.cs
- DiscoveryClientDocuments.cs
- StoreContentChangedEventArgs.cs