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
- SynchronizedInputProviderWrapper.cs
- Serializer.cs
- ProcessModelSection.cs
- SByte.cs
- XslVisitor.cs
- Base64Encoder.cs
- SecurityProtocolCorrelationState.cs
- ImageBrush.cs
- XslException.cs
- XmlNamespaceDeclarationsAttribute.cs
- TableHeaderCell.cs
- DataBoundControlHelper.cs
- QilReplaceVisitor.cs
- Image.cs
- CSharpCodeProvider.cs
- TextStore.cs
- WebBrowserContainer.cs
- DefaultValueConverter.cs
- HandlerFactoryCache.cs
- OleDbParameter.cs
- DataTrigger.cs
- BrowserDefinitionCollection.cs
- ConfigurationException.cs
- ComponentDispatcherThread.cs
- DiscoveryEndpointValidator.cs
- IdentityVerifier.cs
- FlowDocument.cs
- Triplet.cs
- PointF.cs
- ColumnResizeAdorner.cs
- GridSplitter.cs
- XmlValidatingReaderImpl.cs
- LOSFormatter.cs
- ImageAnimator.cs
- AssemblySettingAttributes.cs
- ActivityInterfaces.cs
- Context.cs
- DataGridViewRowCollection.cs
- DecimalFormatter.cs
- ButtonRenderer.cs
- RootBrowserWindow.cs
- Validator.cs
- ReaderOutput.cs
- SubpageParaClient.cs
- SafeArrayTypeMismatchException.cs
- HtmlToClrEventProxy.cs
- SortExpressionBuilder.cs
- TreeViewAutomationPeer.cs
- CalendarModeChangedEventArgs.cs
- PageSetupDialog.cs
- SecurityAttributeGenerationHelper.cs
- LayoutSettings.cs
- HandlerMappingMemo.cs
- DataGridViewHitTestInfo.cs
- XmlNodeChangedEventArgs.cs
- XmlnsDictionary.cs
- SourceChangedEventArgs.cs
- Rotation3D.cs
- Dump.cs
- IntranetCredentialPolicy.cs
- AutomationTextAttribute.cs
- RecordsAffectedEventArgs.cs
- BooleanAnimationUsingKeyFrames.cs
- CurrentTimeZone.cs
- Brushes.cs
- Vars.cs
- FixedDocumentSequencePaginator.cs
- AnimatedTypeHelpers.cs
- CaseInsensitiveComparer.cs
- WebPartCancelEventArgs.cs
- DbQueryCommandTree.cs
- TreeChangeInfo.cs
- CodePrimitiveExpression.cs
- ResourceManagerWrapper.cs
- Vector3DAnimationBase.cs
- ScrollContentPresenter.cs
- BezierSegment.cs
- DuplicateWaitObjectException.cs
- InstallerTypeAttribute.cs
- HttpProfileBase.cs
- CompleteWizardStep.cs
- NavigationWindow.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- AssemblySettingAttributes.cs
- CroppedBitmap.cs
- webclient.cs
- ByteRangeDownloader.cs
- COM2PropertyDescriptor.cs
- RoutingUtilities.cs
- ServiceHttpModule.cs
- CompositeActivityCodeGenerator.cs
- DbResourceAllocator.cs
- ConfigPathUtility.cs
- XmlException.cs
- PenLineCapValidation.cs
- StandardOleMarshalObject.cs
- PropertyValueChangedEvent.cs
- Animatable.cs
- MDIClient.cs
- ObjectContext.cs