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
- contentDescriptor.cs
- TextDecorationLocationValidation.cs
- DecimalAnimation.cs
- UnhandledExceptionEventArgs.cs
- HttpWriter.cs
- StaticSiteMapProvider.cs
- xmlglyphRunInfo.cs
- MetadataImporterQuotas.cs
- Visual3DCollection.cs
- NativeMethods.cs
- HttpClientChannel.cs
- XamlSerializationHelper.cs
- StylusPointPropertyInfo.cs
- Binding.cs
- ContainerControl.cs
- sqlnorm.cs
- PageThemeParser.cs
- SqlInfoMessageEvent.cs
- CodeArrayIndexerExpression.cs
- ProxyManager.cs
- ManifestResourceInfo.cs
- BigInt.cs
- WebControlParameterProxy.cs
- DataServiceKeyAttribute.cs
- SerializationInfo.cs
- BevelBitmapEffect.cs
- DictionaryContent.cs
- TextAnchor.cs
- DATA_BLOB.cs
- BadImageFormatException.cs
- SerializationException.cs
- ProviderUtil.cs
- XXXInfos.cs
- EtwTrace.cs
- SubqueryTrackingVisitor.cs
- BooleanProjectedSlot.cs
- StrokeCollection.cs
- PolicyLevel.cs
- StreamResourceInfo.cs
- ChangeDirector.cs
- X509Certificate2Collection.cs
- SchemaCollectionCompiler.cs
- HttpCapabilitiesEvaluator.cs
- Mapping.cs
- Vector3D.cs
- DoubleUtil.cs
- PolicyLevel.cs
- SequenceFullException.cs
- ProcessHostConfigUtils.cs
- HttpCachePolicyElement.cs
- DbDataAdapter.cs
- NotFiniteNumberException.cs
- cookieexception.cs
- DataKeyArray.cs
- ControlCollection.cs
- GraphicsContext.cs
- FilteredXmlReader.cs
- CodeTypeConstructor.cs
- BrowserPolicyValidator.cs
- SafeThemeHandle.cs
- FieldAccessException.cs
- IdentityModelDictionary.cs
- Brush.cs
- PreviewKeyDownEventArgs.cs
- BamlTreeNode.cs
- WindowsRegion.cs
- XamlTreeBuilder.cs
- DynamicValueConverter.cs
- HttpResponseInternalWrapper.cs
- GenericIdentity.cs
- CaseInsensitiveHashCodeProvider.cs
- DragSelectionMessageFilter.cs
- ClientScriptManagerWrapper.cs
- IFlowDocumentViewer.cs
- OdbcCommandBuilder.cs
- SqlTypesSchemaImporter.cs
- DefaultPropertyAttribute.cs
- TokenDescriptor.cs
- Track.cs
- XmlSchemaImport.cs
- HttpVersion.cs
- AssociationSetMetadata.cs
- DEREncoding.cs
- Stroke.cs
- WebPartZoneBaseDesigner.cs
- PtsCache.cs
- PropertyOrder.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- CatalogZone.cs
- TrustVersion.cs
- UndoEngine.cs
- CodeTypeReferenceCollection.cs
- StringToken.cs
- ComboBox.cs
- InternalConfigSettingsFactory.cs
- SystemIPv4InterfaceProperties.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- RuntimeCompatibilityAttribute.cs
- XmlDocumentSerializer.cs
- ObjectDisposedException.cs