Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / EndpointAddressElementBase.cs / 1 / EndpointAddressElementBase.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.ServiceModel; using System.Configuration; using System.ServiceModel.Channels; using System.Xml; public partial class EndpointAddressElementBase : ConfigurationElement { protected EndpointAddressElementBase() { } [ConfigurationProperty(ConfigurationStrings.Address, DefaultValue = null, Options = ConfigurationPropertyOptions.IsRequired)] public Uri Address { get {return (Uri) base[ConfigurationStrings.Address]; } set {base[ConfigurationStrings.Address] = value; } } [ConfigurationProperty(ConfigurationStrings.Headers)] public AddressHeaderCollectionElement Headers { get { return (AddressHeaderCollectionElement)base[ConfigurationStrings.Headers]; } } [ConfigurationProperty(ConfigurationStrings.Identity)] public IdentityElement Identity { get { return (IdentityElement)base[ConfigurationStrings.Identity]; } } internal protected void Copy(EndpointAddressElementBase source) { if (this.IsReadOnly()) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigReadOnly))); } if (null == source) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source"); } this.Address = source.Address; this.Headers.Headers = source.Headers.Headers; PropertyInformationCollection properties = source.ElementInformation.Properties; if (properties[ConfigurationStrings.Identity].ValueOrigin != PropertyValueOrigin.Default) { this.Identity.Copy(source.Identity); } } public void InitializeFrom(EndpointAddress endpointAddress) { if (null == endpointAddress) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("endpointAddress"); } this.Address = endpointAddress.Uri; this.Headers.Headers = endpointAddress.Headers; if (null != endpointAddress.Identity) { this.Identity.InitializeFrom(endpointAddress.Identity); } } } } // 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
- XDeferredAxisSource.cs
- PropertyNames.cs
- EntityDataSourceMemberPath.cs
- FontFamilyConverter.cs
- precedingquery.cs
- PerformanceCounterPermissionAttribute.cs
- TypeLoadException.cs
- WindowsListViewScroll.cs
- WindowsGraphics2.cs
- sortedlist.cs
- entityreference_tresulttype.cs
- QilSortKey.cs
- ConfigXmlReader.cs
- StringUtil.cs
- AutomationProperties.cs
- FileDataSourceCache.cs
- GiveFeedbackEventArgs.cs
- ListDesigner.cs
- SymbolPair.cs
- FileUpload.cs
- DurableMessageDispatchInspector.cs
- PropertyStore.cs
- FormView.cs
- SerializationInfo.cs
- StylusButtonEventArgs.cs
- ConnectionConsumerAttribute.cs
- ClientUtils.cs
- PageRanges.cs
- HwndHostAutomationPeer.cs
- GenericEnumConverter.cs
- safelinkcollection.cs
- SystemDropShadowChrome.cs
- ListBoxItemWrapperAutomationPeer.cs
- ExceptionValidationRule.cs
- TextBoxView.cs
- WebPartHelpVerb.cs
- ObjectListDataBindEventArgs.cs
- FileLogRecordStream.cs
- XmlCharacterData.cs
- FtpWebResponse.cs
- PageSetupDialog.cs
- ToolStripOverflow.cs
- ReadWriteSpinLock.cs
- DefaultTextStoreTextComposition.cs
- SqlMethodCallConverter.cs
- Point4D.cs
- MarshalByValueComponent.cs
- DesignerSerializationVisibilityAttribute.cs
- ReaderWriterLock.cs
- BitmapEffectDrawingContextState.cs
- DataMember.cs
- EdmSchemaAttribute.cs
- Classification.cs
- GZipStream.cs
- MenuScrollingVisibilityConverter.cs
- SecurityState.cs
- StorageConditionPropertyMapping.cs
- ComponentDispatcher.cs
- InfoCardProofToken.cs
- StrokeIntersection.cs
- OperationAbortedException.cs
- ProfileManager.cs
- XPathArrayIterator.cs
- DispatcherOperation.cs
- XmlSchemaGroup.cs
- TableLayoutPanel.cs
- CodeAttributeDeclarationCollection.cs
- MediaTimeline.cs
- Tile.cs
- DesignerTransactionCloseEvent.cs
- SQLGuidStorage.cs
- UnsafeNativeMethods.cs
- XmlValidatingReader.cs
- TypeUtil.cs
- Button.cs
- ThreadExceptionEvent.cs
- XmlSchemaSubstitutionGroup.cs
- GenericRootAutomationPeer.cs
- TraceContextEventArgs.cs
- Socket.cs
- AutomationPropertyInfo.cs
- ToolTip.cs
- ApplicationDirectory.cs
- PropertyFilterAttribute.cs
- EUCJPEncoding.cs
- Pen.cs
- XmlSchemaSubstitutionGroup.cs
- EncryptedKey.cs
- NativeMethods.cs
- ContextProperty.cs
- ToolboxItemCollection.cs
- Graphics.cs
- SymmetricKey.cs
- ComponentTray.cs
- BitStack.cs
- XmlSignificantWhitespace.cs
- CapabilitiesUse.cs
- IIS7WorkerRequest.cs
- BaseProcessor.cs
- DocumentXPathNavigator.cs