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
- SmiEventSink.cs
- ContactManager.cs
- SystemInfo.cs
- GacUtil.cs
- HttpApplication.cs
- RubberbandSelector.cs
- CollectionChangeEventArgs.cs
- Transform3DCollection.cs
- MethodImplAttribute.cs
- NullableDoubleSumAggregationOperator.cs
- webclient.cs
- Composition.cs
- BinarySecretKeyIdentifierClause.cs
- PrintPageEvent.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- StructuredProperty.cs
- ItemAutomationPeer.cs
- DataGridColumnEventArgs.cs
- HttpWebResponse.cs
- TextCompositionEventArgs.cs
- ServiceMoniker.cs
- _TransmitFileOverlappedAsyncResult.cs
- IsolatedStorageFile.cs
- thaishape.cs
- UrlRoutingModule.cs
- DocumentPageView.cs
- PageFunction.cs
- DataControlLinkButton.cs
- WindowsAuthenticationEventArgs.cs
- SecUtil.cs
- _FtpDataStream.cs
- PeerNearMe.cs
- TextDecorationUnitValidation.cs
- HtmlForm.cs
- ContextMenuService.cs
- QilFunction.cs
- FixedSOMTable.cs
- XPathException.cs
- WsrmFault.cs
- RequestSecurityTokenResponse.cs
- SqlWebEventProvider.cs
- QilReference.cs
- WebPartUtil.cs
- AbsoluteQuery.cs
- Clock.cs
- GridViewCommandEventArgs.cs
- ApplicationDirectory.cs
- IisTraceWebEventProvider.cs
- InvokeSchedule.cs
- GroupBoxRenderer.cs
- CompilerHelpers.cs
- ToolTipAutomationPeer.cs
- TypeUsage.cs
- ReturnValue.cs
- JsonFormatGeneratorStatics.cs
- NotifyInputEventArgs.cs
- WindowsHyperlink.cs
- ColorContextHelper.cs
- StylusLogic.cs
- HostExecutionContextManager.cs
- LinearGradientBrush.cs
- OleDbFactory.cs
- CorrelationService.cs
- SmtpFailedRecipientException.cs
- SemaphoreFullException.cs
- MetadataArtifactLoaderCompositeResource.cs
- SegmentInfo.cs
- ExpressionVisitor.cs
- UInt32.cs
- OrderablePartitioner.cs
- TreeViewHitTestInfo.cs
- PartialCachingAttribute.cs
- MatrixAnimationUsingKeyFrames.cs
- StrongNameMembershipCondition.cs
- CompensationTokenData.cs
- SqlGenericUtil.cs
- SQLByteStorage.cs
- configsystem.cs
- BevelBitmapEffect.cs
- DiscreteKeyFrames.cs
- Floater.cs
- ParseChildrenAsPropertiesAttribute.cs
- CodeCompileUnit.cs
- ZipIOLocalFileHeader.cs
- ProcessModule.cs
- LostFocusEventManager.cs
- UnsupportedPolicyOptionsException.cs
- Themes.cs
- LiteralLink.cs
- ListViewInsertedEventArgs.cs
- BoolExpression.cs
- BaseAddressElementCollection.cs
- RoutedEventArgs.cs
- InstanceDescriptor.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DocumentViewerBaseAutomationPeer.cs
- AssertFilter.cs
- RenameRuleObjectDialog.Designer.cs
- HttpTransportBindingElement.cs
- WebBrowserPermission.cs