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
- PositiveTimeSpanValidatorAttribute.cs
- SQLBinaryStorage.cs
- DocumentsTrace.cs
- CharacterShapingProperties.cs
- MarkupCompilePass2.cs
- CodeCatchClause.cs
- SetStateDesigner.cs
- ProxyDataContractResolver.cs
- CodeGenerationManager.cs
- ScriptResourceMapping.cs
- ExpressionVisitor.cs
- Type.cs
- RijndaelManagedTransform.cs
- IgnoreFlushAndCloseStream.cs
- XamlInt32CollectionSerializer.cs
- Int32CAMarshaler.cs
- SapiInterop.cs
- PageStatePersister.cs
- nulltextcontainer.cs
- RadioButtonPopupAdapter.cs
- ObjectSecurity.cs
- Drawing.cs
- ByteStorage.cs
- EncoderReplacementFallback.cs
- WebPartDescriptionCollection.cs
- GenericEnumConverter.cs
- DataTableReader.cs
- Clipboard.cs
- EncoderFallback.cs
- EventLog.cs
- XmlCodeExporter.cs
- JoinElimination.cs
- newinstructionaction.cs
- CompiledQuery.cs
- SymbolMethod.cs
- SimplePropertyEntry.cs
- OdbcReferenceCollection.cs
- LoaderAllocator.cs
- SimpleHandlerFactory.cs
- HttpResponse.cs
- PartialTrustHelpers.cs
- TextLine.cs
- AsymmetricSignatureDeformatter.cs
- StringCollection.cs
- CacheOutputQuery.cs
- SettingsAttributeDictionary.cs
- SessionState.cs
- WindowsTreeView.cs
- NativeMethods.cs
- WindowsGraphics.cs
- RequiredFieldValidator.cs
- DomNameTable.cs
- DataGridViewCell.cs
- TransformConverter.cs
- DllNotFoundException.cs
- SaveFileDialogDesigner.cs
- Control.cs
- ProfileInfo.cs
- NotifyIcon.cs
- EncoderParameter.cs
- AsyncResult.cs
- BuildManagerHost.cs
- HandleExceptionArgs.cs
- StatusBarPanelClickEvent.cs
- CultureInfoConverter.cs
- MultiPropertyDescriptorGridEntry.cs
- PageTheme.cs
- TextModifierScope.cs
- CompositeCollection.cs
- TraceHandlerErrorFormatter.cs
- FontWeight.cs
- ExpandSegment.cs
- CompiledRegexRunnerFactory.cs
- ParserExtension.cs
- ListBoxChrome.cs
- ActiveDocumentEvent.cs
- ProviderConnectionPointCollection.cs
- ZoneButton.cs
- DataColumnCollection.cs
- TextParaLineResult.cs
- GridViewRowEventArgs.cs
- QueryResultOp.cs
- DrawListViewColumnHeaderEventArgs.cs
- DashStyle.cs
- UnsafeNativeMethodsCLR.cs
- Size.cs
- DeleteWorkflowOwnerCommand.cs
- ComponentEvent.cs
- InternalCache.cs
- _SpnDictionary.cs
- ReachPageContentSerializerAsync.cs
- AppDomainGrammarProxy.cs
- ServicePointManager.cs
- RegistryKey.cs
- ArgumentValidation.cs
- SafeNativeMethods.cs
- QueryResultOp.cs
- ScriptingRoleServiceSection.cs
- ThreadInterruptedException.cs
- WinInet.cs