Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / TransportElement.cs / 1 / TransportElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; public abstract partial class TransportElement : BindingElementExtensionElement { protected TransportElement() { } public override void ApplyConfiguration(BindingElement bindingElement) { base.ApplyConfiguration(bindingElement); TransportBindingElement binding = (TransportBindingElement)bindingElement; binding.ManualAddressing = this.ManualAddressing; binding.MaxBufferPoolSize = this.MaxBufferPoolSize; binding.MaxReceivedMessageSize = this.MaxReceivedMessageSize; } public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); TransportElement source = (TransportElement)from; #pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument this.ManualAddressing = source.ManualAddressing; this.MaxBufferPoolSize = source.MaxBufferPoolSize; this.MaxReceivedMessageSize = source.MaxReceivedMessageSize; } protected internal override BindingElement CreateBindingElement() { TransportBindingElement binding = this.CreateDefaultBindingElement(); this.ApplyConfiguration(binding); return binding; } protected abstract TransportBindingElement CreateDefaultBindingElement(); protected internal override void InitializeFrom(BindingElement bindingElement) { base.InitializeFrom(bindingElement); TransportBindingElement binding = (TransportBindingElement)bindingElement; this.ManualAddressing = binding.ManualAddressing; this.MaxBufferPoolSize = binding.MaxBufferPoolSize; this.MaxReceivedMessageSize = binding.MaxReceivedMessageSize; } [ConfigurationProperty(ConfigurationStrings.ManualAddressing, DefaultValue = false)] public bool ManualAddressing { get { return (bool)base[ConfigurationStrings.ManualAddressing]; } set { base[ConfigurationStrings.ManualAddressing] = value; } } [ConfigurationProperty(ConfigurationStrings.MaxBufferPoolSize, DefaultValue = TransportDefaults.MaxBufferPoolSize)] [LongValidator(MinValue = 1)] public long MaxBufferPoolSize { get { return (long)base[ConfigurationStrings.MaxBufferPoolSize]; } set { base[ConfigurationStrings.MaxBufferPoolSize] = value; } } [ConfigurationProperty(ConfigurationStrings.MaxReceivedMessageSize, DefaultValue = TransportDefaults.MaxReceivedMessageSize)] [LongValidator(MinValue = 1)] public long MaxReceivedMessageSize { get { return (long)base[ConfigurationStrings.MaxReceivedMessageSize]; } set { base[ConfigurationStrings.MaxReceivedMessageSize] = value; } } } } // 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
- ContentElement.cs
- XmlSchemaSimpleContentRestriction.cs
- TemplatedAdorner.cs
- IPAddress.cs
- XmlAggregates.cs
- MethodExpr.cs
- Transform.cs
- ItemCheckedEvent.cs
- CalloutQueueItem.cs
- InstanceData.cs
- OrderablePartitioner.cs
- EdmToObjectNamespaceMap.cs
- RuntimeHandles.cs
- SamlConstants.cs
- ResourceReferenceExpression.cs
- Executor.cs
- Reference.cs
- SplineKeyFrames.cs
- BamlRecordReader.cs
- Transform3DGroup.cs
- BinaryUtilClasses.cs
- HTTPAPI_VERSION.cs
- ActivityDesignerAccessibleObject.cs
- PassportAuthenticationEventArgs.cs
- __Filters.cs
- RawStylusSystemGestureInputReport.cs
- DataConnectionHelper.cs
- ElapsedEventArgs.cs
- InfoCardRSACryptoProvider.cs
- EntityDataSourceWrapperCollection.cs
- DataSysAttribute.cs
- SymbolTable.cs
- ListViewUpdateEventArgs.cs
- ExtendedPropertyCollection.cs
- httpstaticobjectscollection.cs
- WindowsToolbarAsMenu.cs
- X509InitiatorCertificateClientElement.cs
- StringResourceManager.cs
- TextDecorationCollection.cs
- Converter.cs
- ConnectionPoolManager.cs
- ImagingCache.cs
- NativeBuffer.cs
- PointCollection.cs
- HtmlString.cs
- _BufferOffsetSize.cs
- HotCommands.cs
- PropertiesTab.cs
- FactoryMaker.cs
- ResXResourceSet.cs
- FrameworkContentElement.cs
- CheckBox.cs
- TextOnlyOutput.cs
- DataRelation.cs
- ChoiceConverter.cs
- StyleHelper.cs
- ImmutableObjectAttribute.cs
- HtmlTable.cs
- SystemResources.cs
- TypeDependencyAttribute.cs
- GenericTypeParameterBuilder.cs
- ClientScriptManager.cs
- SqlXmlStorage.cs
- FreezableCollection.cs
- WebSysDisplayNameAttribute.cs
- ListViewItemMouseHoverEvent.cs
- ChannelSinkStacks.cs
- RectConverter.cs
- PngBitmapEncoder.cs
- BulletedList.cs
- PropertySegmentSerializer.cs
- GlobalizationSection.cs
- MultiDataTrigger.cs
- WebControlToolBoxItem.cs
- SafeLocalMemHandle.cs
- EntityDataSourceState.cs
- UrlMapping.cs
- Tag.cs
- LineServicesRun.cs
- BindingOperations.cs
- CopyOfAction.cs
- ChannelDemuxer.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- IISMapPath.cs
- TypeLoader.cs
- sqlinternaltransaction.cs
- ExpiredSecurityTokenException.cs
- BrowsableAttribute.cs
- WindowsFont.cs
- ListBoxAutomationPeer.cs
- QueryReaderSettings.cs
- DataList.cs
- XmlSchemaImporter.cs
- SessionStateModule.cs
- PageTheme.cs
- FixedPageAutomationPeer.cs
- ContractValidationHelper.cs
- BindingSourceDesigner.cs
- XPathExpr.cs
- InputScopeAttribute.cs