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
- PeerCollaborationPermission.cs
- RelatedView.cs
- DataStreams.cs
- GridViewRowPresenterBase.cs
- DrawingServices.cs
- DbModificationCommandTree.cs
- EpmSourceTree.cs
- DbConnectionPoolGroup.cs
- SQLBytesStorage.cs
- SHA1.cs
- OdbcConnectionOpen.cs
- Ipv6Element.cs
- DataTrigger.cs
- QilBinary.cs
- Encoder.cs
- FullTextBreakpoint.cs
- ToolStripOverflow.cs
- Properties.cs
- MexNamedPipeBindingElement.cs
- CreateRefExpr.cs
- DesignerTransactionCloseEvent.cs
- UInt64.cs
- MethodExpr.cs
- Missing.cs
- RoleServiceManager.cs
- TextPointer.cs
- ArrayConverter.cs
- Buffer.cs
- ToolTipService.cs
- TreeNodeClickEventArgs.cs
- ButtonColumn.cs
- EastAsianLunisolarCalendar.cs
- PublisherIdentityPermission.cs
- NTAccount.cs
- SerialStream.cs
- FixedSOMTextRun.cs
- SiteMapProvider.cs
- CommandID.cs
- GPPOINT.cs
- SymbolType.cs
- ContentDesigner.cs
- Metafile.cs
- Convert.cs
- CompModSwitches.cs
- DataTrigger.cs
- UniqueConstraint.cs
- ParameterToken.cs
- ClientUtils.cs
- OdbcCommandBuilder.cs
- TextServicesManager.cs
- XmlNotation.cs
- ObjectConverter.cs
- FixedPageAutomationPeer.cs
- ChildTable.cs
- ToolTip.cs
- CreateUserErrorEventArgs.cs
- ContainerAction.cs
- IndentedWriter.cs
- FlowLayoutSettings.cs
- XmlSchemaSimpleContent.cs
- MDIWindowDialog.cs
- DnsPermission.cs
- HuffCodec.cs
- GradientStopCollection.cs
- ContainsRowNumberChecker.cs
- NameValueFileSectionHandler.cs
- WsdlBuildProvider.cs
- PerformanceCounter.cs
- XAMLParseException.cs
- CodeCatchClauseCollection.cs
- MetaChildrenColumn.cs
- XmlILAnnotation.cs
- ColorComboBox.cs
- SrgsNameValueTag.cs
- WindowsAltTab.cs
- InfoCardAsymmetricCrypto.cs
- RSAPKCS1SignatureDeformatter.cs
- ProgressBarRenderer.cs
- CodeGroup.cs
- NetworkAddressChange.cs
- BaseDataList.cs
- ADConnectionHelper.cs
- DataGridViewColumnHeaderCell.cs
- Pair.cs
- DataGridViewCellStyleConverter.cs
- TemplateBindingExpression.cs
- CopyAction.cs
- SocketConnection.cs
- SecureEnvironment.cs
- XmlRawWriterWrapper.cs
- Typeface.cs
- ScaleTransform.cs
- SchemaImporterExtensionsSection.cs
- MutexSecurity.cs
- LinkedResourceCollection.cs
- CodeCompiler.cs
- SchemaTableOptionalColumn.cs
- QueryPageSettingsEventArgs.cs
- TextEditorDragDrop.cs
- StringCollection.cs