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
- PolicyVersion.cs
- TimerElapsedEvenArgs.cs
- MissingManifestResourceException.cs
- CollectionType.cs
- JpegBitmapEncoder.cs
- ItemsPanelTemplate.cs
- RequiredFieldValidator.cs
- ToolboxItemAttribute.cs
- Cursor.cs
- SafeEventLogWriteHandle.cs
- ModelPropertyCollectionImpl.cs
- InteropBitmapSource.cs
- ConfigurationManagerInternalFactory.cs
- BookmarkScopeHandle.cs
- AsyncCompletedEventArgs.cs
- StatusBarDrawItemEvent.cs
- TabletDevice.cs
- DataGridViewCellStyleConverter.cs
- PresentationSource.cs
- COM2IProvidePropertyBuilderHandler.cs
- LicenseException.cs
- ConstraintEnumerator.cs
- EntityProviderFactory.cs
- MobileFormsAuthentication.cs
- NullableDoubleAverageAggregationOperator.cs
- CorrelationManager.cs
- AppDomainManager.cs
- WebScriptMetadataInstanceContextProvider.cs
- TimelineClockCollection.cs
- StrongName.cs
- SqlProviderServices.cs
- SystemIcons.cs
- RadioButton.cs
- Identifier.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- LiteralTextContainerControlBuilder.cs
- CaseInsensitiveHashCodeProvider.cs
- PrivilegeNotHeldException.cs
- ContentPosition.cs
- ScrollableControl.cs
- COM2ComponentEditor.cs
- EntityCommandDefinition.cs
- PatternMatcher.cs
- AuthStoreRoleProvider.cs
- RegexWriter.cs
- WorkflowRuntimeService.cs
- OleDbException.cs
- GradientStop.cs
- DataGridViewLinkCell.cs
- ErrorStyle.cs
- HuffCodec.cs
- HMACRIPEMD160.cs
- HeaderedItemsControl.cs
- ContentPlaceHolder.cs
- XmlSchemaExporter.cs
- Thread.cs
- DocumentApplication.cs
- ProcessProtocolHandler.cs
- MsmqHostedTransportManager.cs
- InputManager.cs
- MultiSelectRootGridEntry.cs
- HierarchicalDataBoundControl.cs
- TableAdapterManagerGenerator.cs
- IncrementalHitTester.cs
- WindowsFormsHost.cs
- EventSourceCreationData.cs
- GenericWebPart.cs
- ResXFileRef.cs
- StrokeNodeEnumerator.cs
- ConnectionStringsExpressionBuilder.cs
- PropertyDescriptor.cs
- AmbientProperties.cs
- XsltFunctions.cs
- ObjectItemCollection.cs
- ToolboxDataAttribute.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XmlCharType.cs
- DecoratedNameAttribute.cs
- ControllableStoryboardAction.cs
- EventItfInfo.cs
- SystemResourceKey.cs
- RectangleF.cs
- CompressedStack.cs
- SqlSelectStatement.cs
- MultiViewDesigner.cs
- ProviderConnectionPointCollection.cs
- URLIdentityPermission.cs
- IdentitySection.cs
- DataGridClipboardCellContent.cs
- _OverlappedAsyncResult.cs
- SapiGrammar.cs
- XmlNodeReader.cs
- Scanner.cs
- EntityClassGenerator.cs
- CuspData.cs
- GridErrorDlg.cs
- FunctionParameter.cs
- WebServiceTypeData.cs
- FontConverter.cs
- WindowsToolbar.cs