Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / CompositeDuplexElement.cs / 1 / CompositeDuplexElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; using System.ServiceModel; public sealed partial class CompositeDuplexElement : BindingElementExtensionElement { public CompositeDuplexElement() { } public override void ApplyConfiguration(BindingElement bindingElement) { base.ApplyConfiguration(bindingElement); CompositeDuplexBindingElement binding = (CompositeDuplexBindingElement)bindingElement; PropertyInformationCollection propertyInfo = this.ElementInformation.Properties; if (propertyInfo[ConfigurationStrings.ClientBaseAddress].ValueOrigin != PropertyValueOrigin.Default) { binding.ClientBaseAddress = this.ClientBaseAddress; } } public override Type BindingElementType { get { return typeof(CompositeDuplexBindingElement); } } public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); CompositeDuplexElement source = (CompositeDuplexElement)from; #pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument this.ClientBaseAddress = source.ClientBaseAddress; } protected internal override BindingElement CreateBindingElement() { CompositeDuplexBindingElement binding = new CompositeDuplexBindingElement(); this.ApplyConfiguration(binding); return binding; } [ConfigurationProperty(ConfigurationStrings.ClientBaseAddress, DefaultValue = null)] public Uri ClientBaseAddress { get { return (Uri)base[ConfigurationStrings.ClientBaseAddress]; } set { base[ConfigurationStrings.ClientBaseAddress] = value; } } protected internal override void InitializeFrom(BindingElement bindingElement) { base.InitializeFrom(bindingElement); CompositeDuplexBindingElement binding = (CompositeDuplexBindingElement)bindingElement; this.ClientBaseAddress = binding.ClientBaseAddress; } } } // 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
- DataGridPagingPage.cs
- ScalarRestriction.cs
- TableStyle.cs
- ThicknessConverter.cs
- XmlLanguageConverter.cs
- PathGeometry.cs
- Icon.cs
- ImageListUtils.cs
- RequestCacheManager.cs
- HealthMonitoringSectionHelper.cs
- MultilineStringEditor.cs
- SqlParameterCollection.cs
- DocumentGrid.cs
- ToolStripSeparatorRenderEventArgs.cs
- PropertyBuilder.cs
- SwitchElementsCollection.cs
- EllipseGeometry.cs
- HttpHandlersSection.cs
- Debugger.cs
- RowType.cs
- TreeWalker.cs
- EnumerableRowCollection.cs
- ModelPropertyImpl.cs
- _NativeSSPI.cs
- BindingManagerDataErrorEventArgs.cs
- ResourcesChangeInfo.cs
- QuaternionConverter.cs
- TraceUtility.cs
- DataGridViewLinkColumn.cs
- XmlSerializerVersionAttribute.cs
- embossbitmapeffect.cs
- DataBindingList.cs
- InvalidDocumentContentsException.cs
- FocusTracker.cs
- BaseDataBoundControl.cs
- DigestTraceRecordHelper.cs
- StringConcat.cs
- SqlGenericUtil.cs
- NativeMethods.cs
- DBCommand.cs
- InProcStateClientManager.cs
- OdbcConnectionString.cs
- SingleTagSectionHandler.cs
- BrowserCapabilitiesCompiler.cs
- XmlReaderDelegator.cs
- StrongTypingException.cs
- MobileCategoryAttribute.cs
- QilDataSource.cs
- ScrollProperties.cs
- Int32Collection.cs
- ManagementException.cs
- backend.cs
- BamlTreeUpdater.cs
- GridViewHeaderRowPresenter.cs
- OutputCacheProviderCollection.cs
- StaticContext.cs
- Label.cs
- ResXResourceWriter.cs
- SafeNativeMethods.cs
- ControlAdapter.cs
- MediaScriptCommandRoutedEventArgs.cs
- DataProtection.cs
- TextRenderer.cs
- ProfileSettingsCollection.cs
- WindowsStatic.cs
- ListViewItemMouseHoverEvent.cs
- ConfigPathUtility.cs
- ExpressionBuilder.cs
- Italic.cs
- StylusPoint.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- TaskResultSetter.cs
- ProfileProvider.cs
- XmlIncludeAttribute.cs
- RestClientProxyHandler.cs
- PolicyException.cs
- Token.cs
- EtwTrackingParticipant.cs
- StickyNote.cs
- FormViewModeEventArgs.cs
- SHA384Cng.cs
- ProxyManager.cs
- NavigationProperty.cs
- ClientBuildManagerCallback.cs
- TypeContext.cs
- WebPartConnectionsConnectVerb.cs
- PrintDialogException.cs
- PerformanceCountersElement.cs
- SpotLight.cs
- XmlSerializerNamespaces.cs
- QilCloneVisitor.cs
- serverconfig.cs
- ControlBuilder.cs
- ArrangedElement.cs
- ImageMapEventArgs.cs
- IMembershipProvider.cs
- TextRangeProviderWrapper.cs
- NamespaceQuery.cs
- WebPartEditorCancelVerb.cs
- DocumentPageViewAutomationPeer.cs