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
- DebugController.cs
- SizeAnimationBase.cs
- EventLogPermissionHolder.cs
- DocumentGridContextMenu.cs
- CreationContext.cs
- ActiveXSite.cs
- MenuAdapter.cs
- TableRowCollection.cs
- HtmlTitle.cs
- WindowExtensionMethods.cs
- ActionMessageFilterTable.cs
- ThousandthOfEmRealDoubles.cs
- SmtpCommands.cs
- ConfigurationHandlersInstallComponent.cs
- DataGridViewCheckBoxColumn.cs
- GenericParameterDataContract.cs
- RoutedEventConverter.cs
- CorrelationActionMessageFilter.cs
- XPathException.cs
- BaseInfoTable.cs
- FixedTextView.cs
- ImageButton.cs
- Point3DAnimation.cs
- CustomAttribute.cs
- Size3D.cs
- XmlEventCache.cs
- Color.cs
- RuntimeIdentifierPropertyAttribute.cs
- WinFormsSpinner.cs
- ResourceDictionaryCollection.cs
- InvalidTimeZoneException.cs
- MethodRental.cs
- DescendantBaseQuery.cs
- ObjectConverter.cs
- DataServiceCollectionOfT.cs
- ConditionValidator.cs
- XmlNodeWriter.cs
- LicenseProviderAttribute.cs
- MatrixAnimationUsingKeyFrames.cs
- DebuggerAttributes.cs
- WmlImageAdapter.cs
- ChangePassword.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DataGridItemEventArgs.cs
- ProjectedSlot.cs
- serverconfig.cs
- RowUpdatingEventArgs.cs
- HwndHost.cs
- _BasicClient.cs
- DrawingAttributes.cs
- CompiledELinqQueryState.cs
- LabelDesigner.cs
- Vars.cs
- RelationshipSet.cs
- HttpClientCertificate.cs
- CustomErrorCollection.cs
- MemoryFailPoint.cs
- WebPartZone.cs
- SspiHelper.cs
- ConfigDefinitionUpdates.cs
- AssemblyInfo.cs
- RNGCryptoServiceProvider.cs
- ECDiffieHellmanCng.cs
- EventWaitHandle.cs
- StringFunctions.cs
- AdRotatorDesigner.cs
- Material.cs
- SafeTimerHandle.cs
- WebPartConnectionsCancelEventArgs.cs
- BackgroundFormatInfo.cs
- Transform3DCollection.cs
- DelegateBodyWriter.cs
- GenericXmlSecurityToken.cs
- VisualStateManager.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CodeMemberMethod.cs
- TemplatePartAttribute.cs
- RuleProcessor.cs
- BuildProviderCollection.cs
- KeyTime.cs
- Thread.cs
- ControlTemplate.cs
- ToolStripLocationCancelEventArgs.cs
- MemberInfoSerializationHolder.cs
- HttpRequest.cs
- LayoutTable.cs
- OracleCommandBuilder.cs
- RequestCachingSection.cs
- ImpersonationContext.cs
- OptimalTextSource.cs
- HwndSourceParameters.cs
- WebMessageFormatHelper.cs
- CodeCommentStatement.cs
- LassoSelectionBehavior.cs
- __Error.cs
- XmlElement.cs
- IHttpResponseInternal.cs
- RelationalExpressions.cs
- dtdvalidator.cs
- ToolStripItemEventArgs.cs