Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / System.ServiceModel.Activation / System / ServiceModel / Activation / TcpHostedTransportConfiguration.cs / 1305376 / TcpHostedTransportConfiguration.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Activation { using System.Collections.Generic; using System.ServiceModel; using System.ServiceModel.Channels; using System.Diagnostics; using System.Web.Hosting; sealed class TcpHostedTransportConfiguration : HostedTransportConfigurationBase { HostedTcpTransportManager uniqueManager; public TcpHostedTransportConfiguration() : base(Uri.UriSchemeNetTcp) { string[] bindings = HostedTransportConfigurationManager.MetabaseSettings.GetBindings(Uri.UriSchemeNetTcp); for (int i = 0; i < bindings.Length; i++) { BaseUriWithWildcard listenAddress = BaseUriWithWildcard.CreateHostedUri(Uri.UriSchemeNetTcp, bindings[i], HostingEnvironmentWrapper.ApplicationVirtualPath); if (i == 0) { Debug.Print("TcpHostedTransportConfiguration.ctor() Creating the unique TcpTransportManager with ListenUri:" + listenAddress.BaseAddress); uniqueManager = new HostedTcpTransportManager(listenAddress); } this.ListenAddresses.Add(listenAddress); Debug.Print("Registering the unique TcpTransportManager with ListenUri:" + listenAddress.BaseAddress); TcpChannelListener.StaticTransportManagerTable.RegisterUri(listenAddress.BaseAddress, listenAddress.HostNameComparisonMode, uniqueManager); } } internal TcpTransportManager TransportManager { get { return uniqueManager; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Activation { using System.Collections.Generic; using System.ServiceModel; using System.ServiceModel.Channels; using System.Diagnostics; using System.Web.Hosting; sealed class TcpHostedTransportConfiguration : HostedTransportConfigurationBase { HostedTcpTransportManager uniqueManager; public TcpHostedTransportConfiguration() : base(Uri.UriSchemeNetTcp) { string[] bindings = HostedTransportConfigurationManager.MetabaseSettings.GetBindings(Uri.UriSchemeNetTcp); for (int i = 0; i < bindings.Length; i++) { BaseUriWithWildcard listenAddress = BaseUriWithWildcard.CreateHostedUri(Uri.UriSchemeNetTcp, bindings[i], HostingEnvironmentWrapper.ApplicationVirtualPath); if (i == 0) { Debug.Print("TcpHostedTransportConfiguration.ctor() Creating the unique TcpTransportManager with ListenUri:" + listenAddress.BaseAddress); uniqueManager = new HostedTcpTransportManager(listenAddress); } this.ListenAddresses.Add(listenAddress); Debug.Print("Registering the unique TcpTransportManager with ListenUri:" + listenAddress.BaseAddress); TcpChannelListener.StaticTransportManagerTable.RegisterUri(listenAddress.BaseAddress, listenAddress.HostNameComparisonMode, uniqueManager); } } internal TcpTransportManager TransportManager { get { return uniqueManager; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SyndicationCategory.cs
- XmlSerializer.cs
- ComponentEditorForm.cs
- ApplicationSettingsBase.cs
- RootNamespaceAttribute.cs
- ExpandoObject.cs
- CompModSwitches.cs
- Ipv6Element.cs
- AlphaSortedEnumConverter.cs
- webeventbuffer.cs
- Enum.cs
- SafeSecurityHandles.cs
- KeyValuePair.cs
- XLinq.cs
- ListQueryResults.cs
- Graph.cs
- CheckPair.cs
- Misc.cs
- PngBitmapDecoder.cs
- FunctionNode.cs
- BitmapVisualManager.cs
- RSACryptoServiceProvider.cs
- RawAppCommandInputReport.cs
- PopOutPanel.cs
- XmlStreamNodeWriter.cs
- DragDeltaEventArgs.cs
- BooleanFunctions.cs
- WebGetAttribute.cs
- AspNetCompatibilityRequirementsMode.cs
- ListViewTableCell.cs
- ToolStripContentPanel.cs
- DataBindingCollection.cs
- ErrorLog.cs
- TableItemStyle.cs
- DebuggerAttributes.cs
- Filter.cs
- SiteMapProvider.cs
- ExtendedPropertyCollection.cs
- MailHeaderInfo.cs
- DesignTimeTemplateParser.cs
- Stackframe.cs
- DodSequenceMerge.cs
- SqlDataSourceSummaryPanel.cs
- ToolStripDropDownItem.cs
- ReadOnlyPropertyMetadata.cs
- EntityDataSourceWrapperCollection.cs
- BindableTemplateBuilder.cs
- EmptyStringExpandableObjectConverter.cs
- EntitySetDataBindingList.cs
- AppDomainFactory.cs
- LayoutTableCell.cs
- XmlHelper.cs
- ControlCommandSet.cs
- TextMarkerSource.cs
- CompiledQuery.cs
- ProgressBarRenderer.cs
- FragmentQueryProcessor.cs
- DockPattern.cs
- WizardDesigner.cs
- ConnectionPoolManager.cs
- SerializationAttributes.cs
- FolderNameEditor.cs
- HostDesigntimeLicenseContext.cs
- UserControlDesigner.cs
- ReliableInputConnection.cs
- SHA384.cs
- RepeatButtonAutomationPeer.cs
- ArgumentNullException.cs
- Int32Storage.cs
- SystemBrushes.cs
- Publisher.cs
- MatrixStack.cs
- OracleConnectionStringBuilder.cs
- SecuritySessionServerSettings.cs
- RsaElement.cs
- WebServiceHandler.cs
- ISessionStateStore.cs
- PopupRoot.cs
- ListViewTableCell.cs
- MatrixTransform.cs
- JsonQNameDataContract.cs
- ValidateNames.cs
- RegexCompiler.cs
- HttpRequestTraceRecord.cs
- EnumerableCollectionView.cs
- ApplyHostConfigurationBehavior.cs
- TcpTransportSecurity.cs
- XamlPointCollectionSerializer.cs
- ManipulationLogic.cs
- arc.cs
- StringFunctions.cs
- FullTextLine.cs
- TileModeValidation.cs
- WebHttpBindingCollectionElement.cs
- CultureInfo.cs
- StatusBarPanelClickEvent.cs
- CodeSubDirectoriesCollection.cs
- MetadataProperty.cs
- TabPageDesigner.cs
- DefaultParameterValueAttribute.cs