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
- XamlInt32CollectionSerializer.cs
- HandlerMappingMemo.cs
- ProcessModuleDesigner.cs
- OdbcFactory.cs
- LineSegment.cs
- Query.cs
- BamlTreeMap.cs
- Boolean.cs
- AutomationEvent.cs
- ToolStripMenuItem.cs
- SpotLight.cs
- ZoneButton.cs
- ServiceOperation.cs
- FontStyles.cs
- _NativeSSPI.cs
- CredentialCache.cs
- ImpersonateTokenRef.cs
- SessionStateUtil.cs
- MsmqBindingMonitor.cs
- ErrorBehavior.cs
- LockedActivityGlyph.cs
- SettingsSection.cs
- DataGridItemEventArgs.cs
- ContentElement.cs
- CfgParser.cs
- SchemaCollectionPreprocessor.cs
- DesignerSerializerAttribute.cs
- FieldToken.cs
- DiagnosticsConfiguration.cs
- PerformanceCounterManager.cs
- METAHEADER.cs
- SchemaComplexType.cs
- CharEnumerator.cs
- EncodingDataItem.cs
- AutomationAttributeInfo.cs
- ImageMap.cs
- WindowsEditBox.cs
- TextRange.cs
- ManagementPath.cs
- Glyph.cs
- SplashScreenNativeMethods.cs
- PasswordPropertyTextAttribute.cs
- ColorConvertedBitmap.cs
- XamlHostingSectionGroup.cs
- RoleManagerEventArgs.cs
- TargetConverter.cs
- SyndicationFeed.cs
- ToolBar.cs
- SystemIPAddressInformation.cs
- DesignerMetadata.cs
- XmlQueryRuntime.cs
- BaseDataBoundControl.cs
- MessagePartProtectionMode.cs
- Label.cs
- ChannelRequirements.cs
- ResolvedKeyFrameEntry.cs
- Matrix.cs
- Opcode.cs
- TextCompositionEventArgs.cs
- MimeMapping.cs
- SizeAnimation.cs
- SoapSchemaImporter.cs
- SqlDataRecord.cs
- BitStack.cs
- OutputScopeManager.cs
- ImageSourceConverter.cs
- HelpKeywordAttribute.cs
- TimeSpanValidator.cs
- SystemUdpStatistics.cs
- XmlTextAttribute.cs
- SchemaTypeEmitter.cs
- LingerOption.cs
- X509RecipientCertificateClientElement.cs
- BaseCAMarshaler.cs
- RecognizedWordUnit.cs
- WinCategoryAttribute.cs
- EntityAdapter.cs
- SizeAnimationClockResource.cs
- UnsafeNativeMethodsMilCoreApi.cs
- BindingWorker.cs
- QueryOutputWriter.cs
- EntityDataSourceChangedEventArgs.cs
- GeneratedContractType.cs
- StoreAnnotationsMap.cs
- TagPrefixAttribute.cs
- HtmlInputSubmit.cs
- XmlSchemaAny.cs
- XmlSerializerNamespaces.cs
- WindowsAuthenticationEventArgs.cs
- tibetanshape.cs
- StringUtil.cs
- BuildResult.cs
- MaterialCollection.cs
- FormsAuthentication.cs
- ServerIdentity.cs
- DbgUtil.cs
- DataBindingCollection.cs
- KeyFrames.cs
- Quaternion.cs
- Exceptions.cs