Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / System.ServiceModel.Activation / System / ServiceModel / Activation / HostedTcpTransportManager.cs / 1305376 / 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; ActiononViaCallback; public HostedTcpTransportManager(BaseUriWithWildcard baseAddress) : base(baseAddress.BaseAddress) { this.HostNameComparisonMode = baseAddress.HostNameComparisonMode; this.onViaCallback = new Action (OnVia); } internal void Start(int queueId, Guid token, Action messageReceivedCallback) { SetMessageReceivedCallback(messageReceivedCallback); OnOpenInternal(queueId, token); } internal override void OnOpen() { // This is intentionally empty. } internal override void OnClose(TimeSpan timeout) { // This is intentionally empty. } internal override void OnAbort() { // This is intentionally empty. } internal void Stop(TimeSpan timeout) { CleanUp(false, timeout); settingsApplied = false; } protected override Action 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartHelpVerb.cs
- WizardStepBase.cs
- HierarchicalDataBoundControlAdapter.cs
- ObjectListTitleAttribute.cs
- RequiredArgumentAttribute.cs
- EditingCommands.cs
- DataKey.cs
- ClientScriptManager.cs
- WmlPageAdapter.cs
- ResXBuildProvider.cs
- FullTrustAssemblyCollection.cs
- AssemblyInfo.cs
- NavigationProperty.cs
- WebBrowserProgressChangedEventHandler.cs
- Renderer.cs
- PersistenceIOParticipant.cs
- XmlSchemaSimpleTypeUnion.cs
- ContentWrapperAttribute.cs
- EndPoint.cs
- MenuItemStyleCollection.cs
- ThreadAttributes.cs
- FileDialogCustomPlace.cs
- MatrixAnimationUsingPath.cs
- Partitioner.cs
- CellIdBoolean.cs
- TabRenderer.cs
- FullTrustAssemblyCollection.cs
- RightsManagementEncryptionTransform.cs
- EntityTypeBase.cs
- OleDbCommandBuilder.cs
- NodeCounter.cs
- TextControl.cs
- ListManagerBindingsCollection.cs
- DataTableNewRowEvent.cs
- ProgressBarRenderer.cs
- CompilationRelaxations.cs
- PageBreakRecord.cs
- cookieexception.cs
- WebPartDisplayMode.cs
- COM2FontConverter.cs
- TextSpanModifier.cs
- UserControlCodeDomTreeGenerator.cs
- XamlVector3DCollectionSerializer.cs
- ComEventsMethod.cs
- ClaimComparer.cs
- UIElement3DAutomationPeer.cs
- RenderTargetBitmap.cs
- TableLayoutSettingsTypeConverter.cs
- PropertyToken.cs
- TargetControlTypeAttribute.cs
- NameValueSectionHandler.cs
- Renderer.cs
- XmlStreamNodeWriter.cs
- ContextBase.cs
- Attributes.cs
- CryptoStream.cs
- ImageAnimator.cs
- RichTextBoxConstants.cs
- XmlComment.cs
- EventLogStatus.cs
- SecurityToken.cs
- TrackBar.cs
- DetailsViewRow.cs
- EncodingInfo.cs
- ControlValuePropertyAttribute.cs
- DataGridHelper.cs
- FormsAuthentication.cs
- OutputCacheProfile.cs
- contentDescriptor.cs
- RequestContext.cs
- RenderDataDrawingContext.cs
- UnknownExceptionActionHelper.cs
- UniqueContractNameValidationBehavior.cs
- Crc32Helper.cs
- PositiveTimeSpanValidatorAttribute.cs
- RTLAwareMessageBox.cs
- propertytag.cs
- _NetworkingPerfCounters.cs
- WorkflowRuntimeServiceElement.cs
- EditorPartChrome.cs
- ConsoleTraceListener.cs
- EndpointAddressElementBase.cs
- DockingAttribute.cs
- ScaleTransform3D.cs
- OperationResponse.cs
- MediaScriptCommandRoutedEventArgs.cs
- EnumerableRowCollectionExtensions.cs
- IdentityHolder.cs
- ReceiveContextCollection.cs
- Array.cs
- FileSecurity.cs
- SystemIcons.cs
- Converter.cs
- DocumentViewerBaseAutomationPeer.cs
- WhereQueryOperator.cs
- EventHandlerService.cs
- DataSourceControl.cs
- Utils.cs
- ToolBar.cs
- CounterSampleCalculator.cs