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
- LinqDataSourceSelectEventArgs.cs
- DependencyObjectPropertyDescriptor.cs
- SynchronousReceiveElement.cs
- ConfigurationSectionGroupCollection.cs
- HttpClientProtocol.cs
- BuildManagerHost.cs
- ObjectIDGenerator.cs
- PropertyMetadata.cs
- XmlAttributeProperties.cs
- ProviderConnectionPoint.cs
- Int32AnimationBase.cs
- ExceptionHelpers.cs
- DataBindEngine.cs
- BackgroundFormatInfo.cs
- DataFormat.cs
- _SSPISessionCache.cs
- AnimatedTypeHelpers.cs
- DiscreteKeyFrames.cs
- RecordManager.cs
- HashMembershipCondition.cs
- KeyGestureValueSerializer.cs
- FontFamilyConverter.cs
- COM2ColorConverter.cs
- DoubleAverageAggregationOperator.cs
- WebConfigurationHostFileChange.cs
- AttributeCollection.cs
- BlockCollection.cs
- GregorianCalendar.cs
- XmlSerializer.cs
- BevelBitmapEffect.cs
- TextStore.cs
- BulletedListEventArgs.cs
- StickyNote.cs
- DecoderFallback.cs
- CollectionChangedEventManager.cs
- AsyncSerializedWorker.cs
- SmiSettersStream.cs
- updateconfighost.cs
- MinimizableAttributeTypeConverter.cs
- WebPartManagerInternals.cs
- GroupBox.cs
- UnmanagedBitmapWrapper.cs
- SmtpNegotiateAuthenticationModule.cs
- precedingsibling.cs
- ConfigurationManagerHelperFactory.cs
- ValidatingPropertiesEventArgs.cs
- UInt16Converter.cs
- Enum.cs
- Transform3D.cs
- TextEvent.cs
- RsaSecurityTokenParameters.cs
- DataExchangeServiceBinder.cs
- RightsController.cs
- DataColumnMapping.cs
- Primitive.cs
- ActivitySurrogateSelector.cs
- IdentifierService.cs
- StreamWriter.cs
- RefExpr.cs
- HttpCacheVaryByContentEncodings.cs
- PropertyItemInternal.cs
- EntityClassGenerator.cs
- TraversalRequest.cs
- DefaultAutoFieldGenerator.cs
- _CommandStream.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ServiceSecurityAuditBehavior.cs
- CodeAttributeArgument.cs
- CodeRegionDirective.cs
- HierarchicalDataBoundControlAdapter.cs
- InstanceValue.cs
- Bits.cs
- ReflectionUtil.cs
- PageParserFilter.cs
- SystemFonts.cs
- Reference.cs
- GridItemPattern.cs
- Rect3DValueSerializer.cs
- Point.cs
- BuildResult.cs
- ApplicationSecurityManager.cs
- MultiView.cs
- CustomErrorsSection.cs
- RemoteWebConfigurationHost.cs
- XamlSerializationHelper.cs
- ProfilePropertyNameValidator.cs
- ImplicitInputBrush.cs
- ViewEvent.cs
- RelationshipConverter.cs
- CellIdBoolean.cs
- StdValidatorsAndConverters.cs
- DefaultTextStore.cs
- EntityRecordInfo.cs
- WebRequestModuleElement.cs
- AstTree.cs
- UserControlParser.cs
- DependencyPropertyDescriptor.cs
- ContextMarshalException.cs