Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / NamedPipeTransportElement.cs / 1 / NamedPipeTransportElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.Globalization; using System.ServiceModel.Channels; public sealed partial class NamedPipeTransportElement : ConnectionOrientedTransportElement { public NamedPipeTransportElement() { } public override Type BindingElementType { get { return typeof(NamedPipeTransportBindingElement); } } public override void ApplyConfiguration(BindingElement bindingElement) { base.ApplyConfiguration(bindingElement); NamedPipeTransportBindingElement binding = (NamedPipeTransportBindingElement)bindingElement; #pragma warning suppress 56506 //[....]; base.ApplyConfiguration above checks for bindingElement being null this.ConnectionPoolSettings.ApplyConfiguration(binding.ConnectionPoolSettings); } protected internal override void InitializeFrom(BindingElement bindingElement) { base.InitializeFrom(bindingElement); #pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument NamedPipeTransportBindingElement binding = (NamedPipeTransportBindingElement)bindingElement; this.ConnectionPoolSettings.InitializeFrom(binding.ConnectionPoolSettings); } public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); NamedPipeTransportElement source = (NamedPipeTransportElement)from; #pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument this.ConnectionPoolSettings.CopyFrom(source.ConnectionPoolSettings); } protected override TransportBindingElement CreateDefaultBindingElement() { return new NamedPipeTransportBindingElement(); } [ConfigurationProperty(ConfigurationStrings.ConnectionPoolSettings)] public NamedPipeConnectionPoolSettingsElement ConnectionPoolSettings { get { return (NamedPipeConnectionPoolSettingsElement)base[ConfigurationStrings.ConnectionPoolSettings]; } set { base[ConfigurationStrings.ConnectionPoolSettings] = 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
- GridViewRowCollection.cs
- ProcessHostConfigUtils.cs
- AppDomainAttributes.cs
- METAHEADER.cs
- Convert.cs
- C14NUtil.cs
- GZipUtils.cs
- TableProviderWrapper.cs
- CheckBox.cs
- OleDbConnection.cs
- _ConnectionGroup.cs
- SrgsGrammarCompiler.cs
- CaseStatement.cs
- _KerberosClient.cs
- ItemCollection.cs
- Scene3D.cs
- SetStateDesigner.cs
- RemotingException.cs
- CounterSetInstanceCounterDataSet.cs
- PaginationProgressEventArgs.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- Label.cs
- CodeMethodInvokeExpression.cs
- XmlSerializerSection.cs
- Number.cs
- GeometryModel3D.cs
- CaseInsensitiveComparer.cs
- XamlTreeBuilder.cs
- ExecutedRoutedEventArgs.cs
- ImageCollectionCodeDomSerializer.cs
- latinshape.cs
- EventSourceCreationData.cs
- ToolBarOverflowPanel.cs
- TreeViewDesigner.cs
- Typography.cs
- KnownTypesHelper.cs
- InitializationEventAttribute.cs
- StringConverter.cs
- GridViewUpdatedEventArgs.cs
- LambdaSerializationException.cs
- AbsoluteQuery.cs
- SettingsContext.cs
- Setter.cs
- MetadataUtil.cs
- Triplet.cs
- TextAnchor.cs
- RadialGradientBrush.cs
- ListBindableAttribute.cs
- BasicHttpSecurityElement.cs
- LockRecursionException.cs
- UnmanagedMemoryStream.cs
- GenericAuthenticationEventArgs.cs
- StoragePropertyMapping.cs
- ClientUrlResolverWrapper.cs
- EpmContentDeSerializer.cs
- FormsAuthentication.cs
- SrgsText.cs
- MonthChangedEventArgs.cs
- PageStatePersister.cs
- ClientOperation.cs
- ScriptResourceHandler.cs
- PanelStyle.cs
- RequiredFieldValidator.cs
- ComponentChangedEvent.cs
- BamlTreeMap.cs
- DomainConstraint.cs
- XmlCharacterData.cs
- FrameworkTextComposition.cs
- ExceptionUtil.cs
- COAUTHINFO.cs
- _Win32.cs
- RewritingSimplifier.cs
- PathStreamGeometryContext.cs
- StructuralComparisons.cs
- UpnEndpointIdentityExtension.cs
- PropertyExpression.cs
- EnvironmentPermission.cs
- SiteMembershipCondition.cs
- XsdBuilder.cs
- PathData.cs
- VoiceChangeEventArgs.cs
- ProjectionPathBuilder.cs
- MatrixStack.cs
- OdbcException.cs
- MatrixStack.cs
- LineSegment.cs
- CellParaClient.cs
- BorderGapMaskConverter.cs
- XmlTypeMapping.cs
- TypeUtil.cs
- TemplateColumn.cs
- DataListItemEventArgs.cs
- SchemaElementDecl.cs
- XmlSchemaDatatype.cs
- Label.cs
- MenuAdapter.cs
- DataGridViewTextBoxCell.cs
- XmlSchemaSimpleTypeUnion.cs
- Menu.cs
- MediaScriptCommandRoutedEventArgs.cs