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
- ComPlusAuthorization.cs
- SqlBulkCopy.cs
- OrderedDictionary.cs
- xml.cs
- RulePatternOps.cs
- SessionIDManager.cs
- WebPartConnectionsConnectVerb.cs
- XmlSchemaSimpleTypeUnion.cs
- LocalBuilder.cs
- OdbcUtils.cs
- DataGridViewTopRowAccessibleObject.cs
- TextWriterEngine.cs
- SpecialTypeDataContract.cs
- CfgParser.cs
- DataControlFieldHeaderCell.cs
- QueryResponse.cs
- AnnotationStore.cs
- SetUserLanguageRequest.cs
- SinglePhaseEnlistment.cs
- ExpressionParser.cs
- QueryOutputWriter.cs
- NavigatorOutput.cs
- HttpClientCertificate.cs
- BitmapEffectGeneralTransform.cs
- WebScriptEndpoint.cs
- WebConvert.cs
- TemplateEditingVerb.cs
- OperationCanceledException.cs
- ByteAnimationBase.cs
- AssemblyNameProxy.cs
- CircleEase.cs
- WebPart.cs
- CircleHotSpot.cs
- XmlReflectionImporter.cs
- HttpGetProtocolImporter.cs
- CompositeControlDesigner.cs
- FileEnumerator.cs
- TreeViewEvent.cs
- EditBehavior.cs
- SafeFileMapViewHandle.cs
- NetSectionGroup.cs
- DataGridViewCellPaintingEventArgs.cs
- CodeObjectCreateExpression.cs
- AnnotationComponentManager.cs
- ButtonChrome.cs
- SecurityPermission.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- RtType.cs
- VariableExpressionConverter.cs
- HtmlGenericControl.cs
- ProxyWebPartConnectionCollection.cs
- HandleCollector.cs
- NullRuntimeConfig.cs
- TemplateBindingExpression.cs
- DataContractJsonSerializer.cs
- Pkcs7Recipient.cs
- SmtpDigestAuthenticationModule.cs
- NetworkInformationPermission.cs
- OleDragDropHandler.cs
- TableRow.cs
- InvalidWorkflowException.cs
- TypeBuilder.cs
- LinearGradientBrush.cs
- JsonStringDataContract.cs
- TextBoxLine.cs
- _NetRes.cs
- ResourceProperty.cs
- ButtonField.cs
- DbInsertCommandTree.cs
- MaskedTextBoxTextEditorDropDown.cs
- EventLog.cs
- TypeResolver.cs
- RoleService.cs
- ToolBarOverflowPanel.cs
- TextBoxAutomationPeer.cs
- IPGlobalProperties.cs
- Button.cs
- RegexReplacement.cs
- XmlSchemaAll.cs
- ClientRolePrincipal.cs
- MultilineStringConverter.cs
- ExtentCqlBlock.cs
- GetPageNumberCompletedEventArgs.cs
- ScriptManagerProxy.cs
- PtsContext.cs
- DecimalConstantAttribute.cs
- ZoneIdentityPermission.cs
- Viewport3DAutomationPeer.cs
- XmlMapping.cs
- TreeView.cs
- GridViewDeletedEventArgs.cs
- LogicalExpressionTypeConverter.cs
- RestHandlerFactory.cs
- SelectorItemAutomationPeer.cs
- ListParagraph.cs
- GeneralTransform3DTo2DTo3D.cs
- XMLUtil.cs
- CodeExpressionCollection.cs
- SerializationFieldInfo.cs
- SiteMapDataSourceView.cs