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
- backend.cs
- BitmapDecoder.cs
- ControlParameter.cs
- EntityDataSourceChangedEventArgs.cs
- ListViewHitTestInfo.cs
- InArgument.cs
- IsolatedStorageFilePermission.cs
- BinaryWriter.cs
- ScrollPattern.cs
- LiteralLink.cs
- SplitterDesigner.cs
- CornerRadiusConverter.cs
- RelationshipDetailsCollection.cs
- ClassHandlersStore.cs
- LocalBuilder.cs
- RectangleConverter.cs
- DateRangeEvent.cs
- SqlLiftWhereClauses.cs
- BindingSource.cs
- AdornerLayer.cs
- Vector3DAnimation.cs
- TextBox.cs
- DateTimeOffset.cs
- EventMappingSettings.cs
- Soap12ServerProtocol.cs
- ListViewSortEventArgs.cs
- Line.cs
- Splitter.cs
- SemaphoreFullException.cs
- MdiWindowListStrip.cs
- VerificationException.cs
- SecuritySessionSecurityTokenProvider.cs
- Condition.cs
- GuidelineCollection.cs
- Pair.cs
- CompositeDataBoundControl.cs
- StringKeyFrameCollection.cs
- BoundColumn.cs
- StyleConverter.cs
- MSAAEventDispatcher.cs
- ProtectedConfigurationSection.cs
- TypeLibConverter.cs
- Array.cs
- ReferenceConverter.cs
- Rijndael.cs
- InternalCache.cs
- ImplicitInputBrush.cs
- PageRanges.cs
- MissingFieldException.cs
- BitSet.cs
- FontFamily.cs
- TreeNode.cs
- GenericUriParser.cs
- TextFragmentEngine.cs
- DataGridLengthConverter.cs
- DialogResultConverter.cs
- MemberHolder.cs
- DocumentPageTextView.cs
- SessionChannels.cs
- CollectionView.cs
- WebPartTracker.cs
- OracleSqlParser.cs
- SchemaLookupTable.cs
- Metafile.cs
- DBSqlParserTable.cs
- RemotingServices.cs
- XslCompiledTransform.cs
- ObjectDataProvider.cs
- BrushMappingModeValidation.cs
- StringComparer.cs
- ElementFactory.cs
- FieldAccessException.cs
- BrushConverter.cs
- SqlConnectionPoolProviderInfo.cs
- Label.cs
- LocalFileSettingsProvider.cs
- StateMachineSubscriptionManager.cs
- CodePropertyReferenceExpression.cs
- BooleanToVisibilityConverter.cs
- InkCanvasFeedbackAdorner.cs
- ProfileElement.cs
- RectangleHotSpot.cs
- ControlParameter.cs
- DeadCharTextComposition.cs
- Serializer.cs
- ObservableCollection.cs
- XmlTextAttribute.cs
- COM2EnumConverter.cs
- ApplicationSettingsBase.cs
- ProfileSettingsCollection.cs
- Cloud.cs
- COAUTHINFO.cs
- IPEndPointCollection.cs
- GridViewAutomationPeer.cs
- _SslSessionsCache.cs
- PerformanceCounterPermission.cs
- TableDetailsCollection.cs
- XmlSequenceWriter.cs
- EventItfInfo.cs
- NativeMethods.cs