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
- FunctionNode.cs
- TabItemAutomationPeer.cs
- XmlCountingReader.cs
- HostVisual.cs
- ListViewDeleteEventArgs.cs
- IntegerValidator.cs
- BevelBitmapEffect.cs
- ActivitySurrogateSelector.cs
- Config.cs
- DragCompletedEventArgs.cs
- TcpChannelHelper.cs
- BaseServiceProvider.cs
- DataSourceControlBuilder.cs
- Group.cs
- StringSorter.cs
- TextTreeTextElementNode.cs
- InheritanceContextHelper.cs
- DynamicPropertyReader.cs
- DependencyPropertyKind.cs
- HtmlToClrEventProxy.cs
- NullableDecimalSumAggregationOperator.cs
- VectorCollectionConverter.cs
- TransactionInterop.cs
- RtfControlWordInfo.cs
- CollectionViewGroup.cs
- CorrelationRequestContext.cs
- NameValueSectionHandler.cs
- Hex.cs
- HttpClientCertificate.cs
- BehaviorEditorPart.cs
- ToolboxBitmapAttribute.cs
- Compiler.cs
- RadioButtonBaseAdapter.cs
- xamlnodes.cs
- mansign.cs
- HtmlTitle.cs
- WmlLinkAdapter.cs
- AnimationLayer.cs
- SqlUtil.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- FormViewInsertEventArgs.cs
- AsyncParams.cs
- WebPartZone.cs
- Substitution.cs
- OracleNumber.cs
- ADMembershipProvider.cs
- QuotaExceededException.cs
- CodeSubDirectoriesCollection.cs
- AspNetSynchronizationContext.cs
- Clock.cs
- WebUtility.cs
- DoubleAnimation.cs
- DirtyTextRange.cs
- VSWCFServiceContractGenerator.cs
- MarkerProperties.cs
- _UriTypeConverter.cs
- PassportPrincipal.cs
- QilExpression.cs
- UserControl.cs
- GeneralTransformGroup.cs
- DbDataRecord.cs
- UriSection.cs
- DBCommandBuilder.cs
- SdlChannelSink.cs
- RelatedImageListAttribute.cs
- DataServiceClientException.cs
- PermissionRequestEvidence.cs
- ObfuscationAttribute.cs
- Rect.cs
- ColumnMap.cs
- GeneralTransform.cs
- FixedPageProcessor.cs
- OdbcInfoMessageEvent.cs
- LayoutTable.cs
- Boolean.cs
- ExeContext.cs
- JpegBitmapDecoder.cs
- CapabilitiesSection.cs
- Int32Animation.cs
- NavigationExpr.cs
- ListParaClient.cs
- FormViewModeEventArgs.cs
- HealthMonitoringSection.cs
- PropertyConverter.cs
- EditorBrowsableAttribute.cs
- NameValueSectionHandler.cs
- IpcChannel.cs
- DrawToolTipEventArgs.cs
- FixedHighlight.cs
- StaticFileHandler.cs
- OutgoingWebResponseContext.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CellParagraph.cs
- CreateUserWizardDesigner.cs
- XmlDataImplementation.cs
- JoinSymbol.cs
- MultiBindingExpression.cs
- Registry.cs
- TextViewBase.cs
- MembershipUser.cs