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
- ActivityInstance.cs
- DiscriminatorMap.cs
- RouteItem.cs
- GraphicsPath.cs
- SqlDeflator.cs
- MediaTimeline.cs
- BuiltInPermissionSets.cs
- ResourceProviderFactory.cs
- ValidationSummary.cs
- DataTable.cs
- XsltArgumentList.cs
- DiscoveryService.cs
- QueryConverter.cs
- OfTypeExpression.cs
- ExpressionBuilder.cs
- ZipIOExtraField.cs
- Lease.cs
- PointCollectionConverter.cs
- Int64AnimationBase.cs
- RegistryConfigurationProvider.cs
- MustUnderstandBehavior.cs
- Soap.cs
- RelatedImageListAttribute.cs
- XslException.cs
- UnhandledExceptionEventArgs.cs
- DateTimeConverter2.cs
- EntityDataSourceSelectingEventArgs.cs
- TypefaceMap.cs
- EmbossBitmapEffect.cs
- TreeViewCancelEvent.cs
- PrivilegedConfigurationManager.cs
- DynamicExpression.cs
- EmptyStringExpandableObjectConverter.cs
- FrameDimension.cs
- BindingCollection.cs
- BeginStoryboard.cs
- TextEditorTyping.cs
- ToolBar.cs
- Vector3DCollection.cs
- TableLayoutStyle.cs
- odbcmetadatacollectionnames.cs
- HtmlFormParameterReader.cs
- SafeRegistryKey.cs
- StatusBarItemAutomationPeer.cs
- EditorOptionAttribute.cs
- CommonRemoteMemoryBlock.cs
- ClientApiGenerator.cs
- Cursor.cs
- WindowsSpinner.cs
- TableLayoutSettings.cs
- CatalogPartDesigner.cs
- MembershipPasswordException.cs
- ParameterElement.cs
- ProgressBarHighlightConverter.cs
- XmlSchemaChoice.cs
- ForeignKeyConstraint.cs
- PropertyGroupDescription.cs
- PathData.cs
- DefaultAuthorizationContext.cs
- SymbolType.cs
- AuthenticationManager.cs
- PointValueSerializer.cs
- ConfigurationPropertyCollection.cs
- DataBindingExpressionBuilder.cs
- ImageListUtils.cs
- EntityContainerEntitySet.cs
- StructuredProperty.cs
- Axis.cs
- RoleExceptions.cs
- EventArgs.cs
- DataGridViewDataConnection.cs
- WebServiceHandlerFactory.cs
- ObjectCloneHelper.cs
- ProgressBarAutomationPeer.cs
- ErrorTableItemStyle.cs
- DataGridViewButtonCell.cs
- PathFigureCollectionConverter.cs
- MenuCommands.cs
- SafeNativeMethods.cs
- TcpAppDomainProtocolHandler.cs
- TabControlAutomationPeer.cs
- _WinHttpWebProxyDataBuilder.cs
- HandlerBase.cs
- EnumMemberAttribute.cs
- SafeRightsManagementEnvironmentHandle.cs
- HwndSource.cs
- EditingScopeUndoUnit.cs
- InheritanceService.cs
- XmlSchemaInclude.cs
- IItemProperties.cs
- CodeEventReferenceExpression.cs
- MenuScrollingVisibilityConverter.cs
- RadioButtonAutomationPeer.cs
- _NativeSSPI.cs
- AppSettingsExpressionBuilder.cs
- HttpCookieCollection.cs
- Quad.cs
- SimpleBitVector32.cs
- SafeLocalMemHandle.cs
- WebPartCatalogAddVerb.cs