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
- DataMemberConverter.cs
- PagedControl.cs
- ExtendedProperty.cs
- DetailsViewCommandEventArgs.cs
- OdbcUtils.cs
- ConfigXmlSignificantWhitespace.cs
- RouteItem.cs
- FieldNameLookup.cs
- StylusPointPropertyUnit.cs
- DataControlPagerLinkButton.cs
- ObjectListItemCollection.cs
- DataServiceQueryOfT.cs
- WebCategoryAttribute.cs
- FormParameter.cs
- odbcmetadatacolumnnames.cs
- WindowsSlider.cs
- PermissionRequestEvidence.cs
- PageTheme.cs
- ToolStripEditorManager.cs
- EnumerableRowCollection.cs
- UniqueConstraint.cs
- SpecialTypeDataContract.cs
- Transform.cs
- AstTree.cs
- TrackingProfile.cs
- WebPartsPersonalizationAuthorization.cs
- CodeCatchClauseCollection.cs
- AsyncResult.cs
- RestHandlerFactory.cs
- SpecialNameAttribute.cs
- ClockController.cs
- DataListGeneralPage.cs
- PartitionResolver.cs
- ChildrenQuery.cs
- UIPropertyMetadata.cs
- MonitoringDescriptionAttribute.cs
- XPathNavigator.cs
- CodeExpressionRuleDeclaration.cs
- OverlappedAsyncResult.cs
- SerialStream.cs
- Rotation3DKeyFrameCollection.cs
- SplitterPanel.cs
- BamlRecordReader.cs
- FormsAuthenticationCredentials.cs
- SchemaAttDef.cs
- SvcMapFile.cs
- EntityDataSourceEntityTypeFilterItem.cs
- WhereaboutsReader.cs
- AnnotationMap.cs
- externdll.cs
- MarkedHighlightComponent.cs
- ByteStreamBufferedMessageData.cs
- DataFormats.cs
- Environment.cs
- StylusTip.cs
- StringComparer.cs
- ReadOnlyCollectionBase.cs
- FilteredAttributeCollection.cs
- StyleSelector.cs
- ImageListImage.cs
- ServiceEndpointElement.cs
- InputLanguageProfileNotifySink.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DbConnectionPoolGroup.cs
- SqlOuterApplyReducer.cs
- KeyedHashAlgorithm.cs
- MarkupObject.cs
- Win32PrintDialog.cs
- FormViewPageEventArgs.cs
- tooltip.cs
- BindingManagerDataErrorEventArgs.cs
- SimpleBitVector32.cs
- Msec.cs
- RangeBase.cs
- PersonalizablePropertyEntry.cs
- UIElementParagraph.cs
- SoapIncludeAttribute.cs
- InkCanvasInnerCanvas.cs
- RadioButton.cs
- Scene3D.cs
- NamespaceEmitter.cs
- Section.cs
- LayoutManager.cs
- TransactionScope.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- WCFBuildProvider.cs
- NetworkAddressChange.cs
- SpAudioStreamWrapper.cs
- ServiceDurableInstanceContextProvider.cs
- WebBrowserHelper.cs
- TreeViewBindingsEditor.cs
- Pkcs7Recipient.cs
- ImageList.cs
- connectionpool.cs
- EpmSyndicationContentSerializer.cs
- CalendarSelectionChangedEventArgs.cs
- HitTestResult.cs
- SupportsPreviewControlAttribute.cs
- XmlLanguageConverter.cs
- NamedObject.cs