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
- ObjectQuery_EntitySqlExtensions.cs
- TableRowCollection.cs
- InputReportEventArgs.cs
- BinaryFormatterWriter.cs
- TrackingProfileSerializer.cs
- XmlWellformedWriter.cs
- PermissionRequestEvidence.cs
- StyleHelper.cs
- JsonByteArrayDataContract.cs
- CultureTable.cs
- XPathDocumentIterator.cs
- DataGridViewRowCollection.cs
- QilInvoke.cs
- CroppedBitmap.cs
- NullableDoubleAverageAggregationOperator.cs
- IPHostEntry.cs
- InputProviderSite.cs
- ConstraintStruct.cs
- ImageButton.cs
- ActiveXMessageFormatter.cs
- DataGridViewCheckBoxCell.cs
- LinkLabel.cs
- EUCJPEncoding.cs
- Slider.cs
- RequestNavigateEventArgs.cs
- FormViewPageEventArgs.cs
- DbMetaDataColumnNames.cs
- CompositionTarget.cs
- SecurityContextTokenValidationException.cs
- EncoderExceptionFallback.cs
- CalendarDesigner.cs
- Point3D.cs
- UnionCodeGroup.cs
- ArraySegment.cs
- SafeNativeMethods.cs
- MessageSecurityTokenVersion.cs
- EntityEntry.cs
- ScaleTransform.cs
- MdiWindowListItemConverter.cs
- invalidudtexception.cs
- PropertySourceInfo.cs
- ListViewInsertedEventArgs.cs
- ServerIdentity.cs
- RankException.cs
- AgileSafeNativeMemoryHandle.cs
- SendMessageContent.cs
- RectAnimationUsingKeyFrames.cs
- MediaElementAutomationPeer.cs
- ComponentConverter.cs
- DocumentCollection.cs
- ProxyBuilder.cs
- CacheDependency.cs
- Pen.cs
- Encoder.cs
- CodeTypeDelegate.cs
- Material.cs
- StateMachine.cs
- Compilation.cs
- TreeBuilder.cs
- NameHandler.cs
- VisualProxy.cs
- CanExpandCollapseAllConverter.cs
- InputMethod.cs
- InputLanguageProfileNotifySink.cs
- PageCodeDomTreeGenerator.cs
- WindowsGraphicsCacheManager.cs
- TextServicesManager.cs
- BlurEffect.cs
- DataGridViewTextBoxCell.cs
- ArraySortHelper.cs
- BufferModeSettings.cs
- RequestQueue.cs
- Line.cs
- PerspectiveCamera.cs
- SqlBulkCopyColumnMappingCollection.cs
- ErrorsHelper.cs
- WebPartCancelEventArgs.cs
- WindowsStartMenu.cs
- DWriteFactory.cs
- AuthenticationConfig.cs
- MonitorWrapper.cs
- DrawListViewSubItemEventArgs.cs
- OdbcConnectionFactory.cs
- EditCommandColumn.cs
- TemplateBamlRecordReader.cs
- NetworkStream.cs
- TypeUsageBuilder.cs
- Label.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XmlSerializerFactory.cs
- DataContractJsonSerializer.cs
- DiscoveryDocumentSearchPattern.cs
- TreeNodeStyle.cs
- SecureEnvironment.cs
- XmlSchemaDocumentation.cs
- PtsPage.cs
- ProtocolViolationException.cs
- AttributeConverter.cs
- NumberAction.cs
- RequestCacheEntry.cs