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
- DependencySource.cs
- _ProxyChain.cs
- SchemaImporter.cs
- CodeVariableDeclarationStatement.cs
- Matrix3D.cs
- BaseUriHelper.cs
- ResolveNameEventArgs.cs
- QuerySelectOp.cs
- ConfigXmlWhitespace.cs
- HorizontalAlignConverter.cs
- PipelineDeploymentState.cs
- DoubleAnimationUsingPath.cs
- MultipleFilterMatchesException.cs
- SafeNativeMethods.cs
- XmlSchemaIdentityConstraint.cs
- SocketConnection.cs
- TextSelectionHighlightLayer.cs
- Task.cs
- ListBoxItem.cs
- UniqueIdentifierService.cs
- Misc.cs
- MenuBase.cs
- BasePropertyDescriptor.cs
- PrimitiveRenderer.cs
- DesignTimeXamlWriter.cs
- DataMemberListEditor.cs
- CellPartitioner.cs
- FreezableDefaultValueFactory.cs
- AspNetSynchronizationContext.cs
- TreeNode.cs
- DayRenderEvent.cs
- FileLevelControlBuilderAttribute.cs
- SqlMethodCallConverter.cs
- Point3DValueSerializer.cs
- OdbcTransaction.cs
- MultipleViewPatternIdentifiers.cs
- SID.cs
- SettingsPropertyCollection.cs
- BinaryFormatterWriter.cs
- MultiViewDesigner.cs
- PresentationSource.cs
- ToolStripHighContrastRenderer.cs
- _DigestClient.cs
- TypedTableBase.cs
- UpdateExpressionVisitor.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- dsa.cs
- BindingNavigator.cs
- SyndicationElementExtensionCollection.cs
- PersistenceProviderElement.cs
- BamlLocalizableResourceKey.cs
- WebServiceMethodData.cs
- FastEncoder.cs
- dataprotectionpermissionattribute.cs
- ResourceAttributes.cs
- FigureParaClient.cs
- ContractBase.cs
- EntityTypeEmitter.cs
- TextEditorLists.cs
- CriticalHandle.cs
- UnsafeNativeMethods.cs
- IsolatedStorageFileStream.cs
- ChtmlImageAdapter.cs
- FrameworkPropertyMetadata.cs
- SystemNetworkInterface.cs
- DateBoldEvent.cs
- SchemaTypeEmitter.cs
- Guid.cs
- DataGridViewMethods.cs
- XmlSchemaInferenceException.cs
- DynamicHyperLink.cs
- CodeMemberProperty.cs
- LineInfo.cs
- PrivilegeNotHeldException.cs
- PiiTraceSource.cs
- LiteralSubsegment.cs
- ApplicationHost.cs
- AttachmentService.cs
- TemplateInstanceAttribute.cs
- BindingContext.cs
- SafeArrayTypeMismatchException.cs
- RenderTargetBitmap.cs
- ResourceDisplayNameAttribute.cs
- DropShadowBitmapEffect.cs
- PageSettings.cs
- NetworkInterface.cs
- DriveInfo.cs
- CompilationPass2Task.cs
- HttpConfigurationContext.cs
- _KerberosClient.cs
- WorkflowDataContext.cs
- Label.cs
- SchemaManager.cs
- RSAOAEPKeyExchangeDeformatter.cs
- UpdatePanelTriggerCollection.cs
- SystemGatewayIPAddressInformation.cs
- ReadWriteSpinLock.cs
- SystemIcmpV6Statistics.cs
- AuthenticatedStream.cs
- ISAPIRuntime.cs