Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Activation / HostedTcpTransportManager.cs / 1 / HostedTcpTransportManager.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Activation { using System.ServiceModel.Channels; using System.Collections.Generic; using System.Diagnostics; class HostedTcpTransportManager : SharedTcpTransportManager { bool settingsApplied; OnViaDelegate onViaCallback; public HostedTcpTransportManager(BaseUriWithWildcard baseAddress) : base(baseAddress.BaseAddress) { this.HostNameComparisonMode = baseAddress.HostNameComparisonMode; this.onViaCallback = new OnViaDelegate(OnVia); } internal void Start(int queueId, Guid token, MessageReceivedCallback messageReceivedCallback) { SetMessageReceivedCallback(messageReceivedCallback); OnOpenInternal(queueId, token); } internal override void OnOpen() { // This is intentionally empty. } internal void Stop() { CleanUp(); settingsApplied = false; } protected override OnViaDelegate GetOnViaCallback() { return this.onViaCallback; } void OnVia(Uri address) { Debug.Print("HostedTcpTransportManager.OnVia() address: " + address + " calling EnsureServiceAvailable()"); ServiceHostingEnvironment.EnsureServiceAvailable(address.LocalPath); } protected override void OnSelecting(TcpChannelListener channelListener) { if (settingsApplied) { return; } lock (ThisLock) { if (settingsApplied) { // Use the first one. return; } this.ApplyListenerSettings(channelListener); settingsApplied = true; } } } } // 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
- RequestCacheValidator.cs
- PathSegment.cs
- AutoResetEvent.cs
- PreviewKeyDownEventArgs.cs
- SystemPens.cs
- SignedInfo.cs
- ContactManager.cs
- IdnElement.cs
- Timer.cs
- NumericUpDownAcceleration.cs
- MulticastIPAddressInformationCollection.cs
- ICollection.cs
- TextContainerHelper.cs
- TextParaClient.cs
- DataServiceRequest.cs
- FtpRequestCacheValidator.cs
- MasterPageCodeDomTreeGenerator.cs
- altserialization.cs
- XmlQualifiedName.cs
- SessionStateModule.cs
- XComponentModel.cs
- WorkflowMarkupElementEventArgs.cs
- KeyValueConfigurationElement.cs
- WindowsAuthenticationModule.cs
- InputManager.cs
- SubMenuStyleCollection.cs
- VectorCollectionValueSerializer.cs
- ServiceDescriptions.cs
- DataSetUtil.cs
- URLString.cs
- _LazyAsyncResult.cs
- EmptyEnumerator.cs
- NamedPipeWorkerProcess.cs
- ProfileModule.cs
- FlowPanelDesigner.cs
- PrimitiveCodeDomSerializer.cs
- PropertyChangedEventArgs.cs
- EnvironmentPermission.cs
- CustomAssemblyResolver.cs
- DocumentApplicationState.cs
- DataSourceCollectionBase.cs
- ContainerAction.cs
- ComplexTypeEmitter.cs
- Size.cs
- DynamicRenderer.cs
- XmlnsDictionary.cs
- DataGridPageChangedEventArgs.cs
- PositiveTimeSpanValidator.cs
- CollectionBuilder.cs
- counter.cs
- BasicSecurityProfileVersion.cs
- DispatcherHookEventArgs.cs
- NameValueSectionHandler.cs
- CompilationLock.cs
- AsyncOperationManager.cs
- SkewTransform.cs
- SplashScreen.cs
- TableAutomationPeer.cs
- DataGridState.cs
- BitStream.cs
- DbMetaDataFactory.cs
- SecurityTokenResolver.cs
- ColumnMapCopier.cs
- XmlCustomFormatter.cs
- Misc.cs
- CheckPair.cs
- LockingPersistenceProvider.cs
- BitmapEffectDrawing.cs
- AppSettingsSection.cs
- DbProviderFactories.cs
- ImageListUtils.cs
- Exceptions.cs
- EditorPart.cs
- VirtualDirectoryMapping.cs
- HttpRuntime.cs
- PropertyConverter.cs
- DesigntimeLicenseContextSerializer.cs
- XmlQueryType.cs
- LayoutTableCell.cs
- DependencyPropertyHelper.cs
- DrawItemEvent.cs
- DefaultSection.cs
- ProcessThread.cs
- HwndHostAutomationPeer.cs
- CompilationPass2Task.cs
- EventLog.cs
- ConfigurationStrings.cs
- SocketException.cs
- ManagementNamedValueCollection.cs
- HScrollProperties.cs
- DbDataRecord.cs
- ConnectionConsumerAttribute.cs
- ProjectedSlot.cs
- OrderedDictionary.cs
- CellTreeNodeVisitors.cs
- SqlDependencyListener.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CompositeCollection.cs
- ProxyGenerator.cs
- FloaterBaseParagraph.cs