Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ChannelEndpointElementCollection.cs / 1 / ChannelEndpointElementCollection.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System;
using System.Collections;
using System.Configuration;
using System.Globalization;
[ConfigurationCollection(typeof(ChannelEndpointElement), AddItemName = ConfigurationStrings.Endpoint)]
public sealed class ChannelEndpointElementCollection : ServiceModelEnhancedConfigurationElementCollection
{
public ChannelEndpointElementCollection()
: base(ConfigurationStrings.Endpoint)
{}
protected override Object GetElementKey(ConfigurationElement element)
{
if (element == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
}
ChannelEndpointElement configElementKey = (ChannelEndpointElement) element;
return string.Format(CultureInfo.InvariantCulture,
"contractType:{0};name:{1}",
configElementKey.Contract,
configElementKey.Name);
}
}
}
// 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
- _LazyAsyncResult.cs
- SinglePhaseEnlistment.cs
- QueryableFilterUserControl.cs
- StateInitialization.cs
- ValueTypeFixupInfo.cs
- DataGridViewCheckBoxColumn.cs
- DrawingContextWalker.cs
- HostUtils.cs
- BuilderInfo.cs
- KeyGestureValueSerializer.cs
- RawStylusInput.cs
- EmptyImpersonationContext.cs
- SwitchAttribute.cs
- ContentDisposition.cs
- WsatExtendedInformation.cs
- ChangePasswordDesigner.cs
- XmlSiteMapProvider.cs
- XsdDateTime.cs
- StaticFileHandler.cs
- RegionData.cs
- AnnotationResource.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- MimeFormReflector.cs
- HelpExampleGenerator.cs
- User.cs
- ETagAttribute.cs
- ThreadStateException.cs
- AudioException.cs
- TextUtf8RawTextWriter.cs
- ElementsClipboardData.cs
- StateMachineDesignerPaint.cs
- MethodMessage.cs
- DataGridRowDetailsEventArgs.cs
- NegatedCellConstant.cs
- PeerNode.cs
- SyndicationElementExtension.cs
- UIElement.cs
- BitmapEffect.cs
- DetailsViewUpdatedEventArgs.cs
- Attributes.cs
- PeerContact.cs
- WebContext.cs
- XmlEventCache.cs
- CodeThrowExceptionStatement.cs
- ObjectContext.cs
- DeobfuscatingStream.cs
- DataColumnMappingCollection.cs
- DataGridCommandEventArgs.cs
- CompilerCollection.cs
- EventBindingService.cs
- DataGridViewBand.cs
- DynamicValueConverter.cs
- ContentTextAutomationPeer.cs
- ConnectionPointGlyph.cs
- Int16KeyFrameCollection.cs
- GB18030Encoding.cs
- X509IssuerSerialKeyIdentifierClause.cs
- DocumentationServerProtocol.cs
- CodeCatchClauseCollection.cs
- XdrBuilder.cs
- HttpProtocolReflector.cs
- MemoryFailPoint.cs
- AlphaSortedEnumConverter.cs
- XmlNullResolver.cs
- ConfigXmlAttribute.cs
- HttpListenerResponse.cs
- DataListCommandEventArgs.cs
- BaseResourcesBuildProvider.cs
- OdbcConnectionOpen.cs
- SecurityContextTokenValidationException.cs
- DbParameterCollectionHelper.cs
- NetWebProxyFinder.cs
- Border.cs
- XPathPatternBuilder.cs
- TaiwanLunisolarCalendar.cs
- EventProviderClassic.cs
- GetCryptoTransformRequest.cs
- MatchingStyle.cs
- Rijndael.cs
- AttachedAnnotationChangedEventArgs.cs
- TextCharacters.cs
- WmlListAdapter.cs
- XmlReturnReader.cs
- InputScopeConverter.cs
- DesignBinding.cs
- Console.cs
- WebBrowserProgressChangedEventHandler.cs
- TextAction.cs
- DocumentXPathNavigator.cs
- ColorConverter.cs
- ErrorWebPart.cs
- BigInt.cs
- XmlSchemaChoice.cs
- ProfileSection.cs
- XmlSerializerNamespaces.cs
- XamlFilter.cs
- PrintControllerWithStatusDialog.cs
- SessionParameter.cs
- OperationResponse.cs
- UdpMessageProperty.cs