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
- XmlArrayItemAttribute.cs
- CultureInfo.cs
- SqlUDTStorage.cs
- ScrollEventArgs.cs
- BinaryNode.cs
- HttpConfigurationSystem.cs
- DataSourceControlBuilder.cs
- UnmanagedMarshal.cs
- ArrayMergeHelper.cs
- Style.cs
- TemplatedMailWebEventProvider.cs
- SortableBindingList.cs
- DataControlField.cs
- XmlCountingReader.cs
- ControlCachePolicy.cs
- UrlMappingsSection.cs
- Policy.cs
- VectorCollectionConverter.cs
- ListControlConvertEventArgs.cs
- MenuCommandService.cs
- SqlCommandSet.cs
- CapiNative.cs
- CounterCreationDataConverter.cs
- EdmProviderManifest.cs
- ResolveNameEventArgs.cs
- XmlNodeChangedEventManager.cs
- ControlUtil.cs
- Function.cs
- EntityRecordInfo.cs
- HierarchicalDataBoundControl.cs
- SQLMoney.cs
- PropertyFilter.cs
- GPRECTF.cs
- New.cs
- HtmlTableCell.cs
- XPathPatternParser.cs
- ViewValidator.cs
- _UriSyntax.cs
- ViewStateModeByIdAttribute.cs
- SqlTypeConverter.cs
- WindowsUpDown.cs
- XmlSchemaProviderAttribute.cs
- XmlSchemaObject.cs
- DynamicActivityProperty.cs
- DecoderFallbackWithFailureFlag.cs
- _IPv6Address.cs
- PopOutPanel.cs
- Effect.cs
- ConsumerConnectionPointCollection.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- GridItemProviderWrapper.cs
- MetafileHeader.cs
- DateTimeFormatInfoScanner.cs
- SiteMapNode.cs
- InputLanguage.cs
- NativeMethods.cs
- SocketElement.cs
- MultiTrigger.cs
- IUnknownConstantAttribute.cs
- HttpModulesSection.cs
- DataGridToolTip.cs
- DataExpression.cs
- NotifyIcon.cs
- XmlIgnoreAttribute.cs
- DataGridColumnCollectionEditor.cs
- HttpResponseHeader.cs
- RepeaterItem.cs
- ToolStripPanelSelectionBehavior.cs
- Int64AnimationBase.cs
- FontStretchConverter.cs
- ArgIterator.cs
- ArgumentOutOfRangeException.cs
- DocumentPageTextView.cs
- FilteredDataSetHelper.cs
- Latin1Encoding.cs
- ValidatedMobileControlConverter.cs
- BasicKeyConstraint.cs
- WindowsClaimSet.cs
- PropertyTab.cs
- DrawingVisualDrawingContext.cs
- MgmtConfigurationRecord.cs
- ZoomingMessageFilter.cs
- BeginGetFileNameFromUserRequest.cs
- GuidelineSet.cs
- DynamicResourceExtension.cs
- PartialList.cs
- EmptyElement.cs
- QuerySetOp.cs
- XslAstAnalyzer.cs
- Expander.cs
- PrincipalPermissionMode.cs
- SkinIDTypeConverter.cs
- ControlCollection.cs
- Ref.cs
- LoadedOrUnloadedOperation.cs
- XmlDocumentType.cs
- DataTemplateSelector.cs
- AnnotationStore.cs
- DataGridColumnCollectionEditor.cs
- EntityViewGenerator.cs