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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AttributeXamlType.cs
- SqlUDTStorage.cs
- GridToolTip.cs
- EUCJPEncoding.cs
- TransactionManager.cs
- ShapeTypeface.cs
- MemoryPressure.cs
- FlowLayout.cs
- CodeMemberProperty.cs
- Pointer.cs
- BuiltInExpr.cs
- LinqDataView.cs
- ToolTipService.cs
- EditorZone.cs
- XmlnsCache.cs
- XsltConvert.cs
- SafeArrayRankMismatchException.cs
- ComProxy.cs
- nulltextnavigator.cs
- ViewEvent.cs
- RegexFCD.cs
- Propagator.JoinPropagator.cs
- ObservableCollectionDefaultValueFactory.cs
- ListManagerBindingsCollection.cs
- TypeEnumerableViewSchema.cs
- DefaultWorkflowTransactionService.cs
- SqlClientMetaDataCollectionNames.cs
- TemplateBindingExpressionConverter.cs
- CompiledQueryCacheEntry.cs
- Window.cs
- OutOfMemoryException.cs
- SqlBuilder.cs
- FileCodeGroup.cs
- BinaryObjectWriter.cs
- ConfigXmlSignificantWhitespace.cs
- EntryIndex.cs
- Parallel.cs
- DataObjectAttribute.cs
- Vector3D.cs
- Single.cs
- HtmlDocument.cs
- ConfigXmlWhitespace.cs
- XPathBinder.cs
- SqlReferenceCollection.cs
- TypeTypeConverter.cs
- ContentPlaceHolder.cs
- LicenseProviderAttribute.cs
- CodeConditionStatement.cs
- DataControlLinkButton.cs
- GridViewPageEventArgs.cs
- ColumnResult.cs
- SelectedDatesCollection.cs
- DataMemberFieldEditor.cs
- DrawingGroup.cs
- DataServiceStreamResponse.cs
- OracleConnectionFactory.cs
- SiteMembershipCondition.cs
- AudioDeviceOut.cs
- QilXmlReader.cs
- Image.cs
- SourceFileBuildProvider.cs
- _BaseOverlappedAsyncResult.cs
- VersionedStream.cs
- ChannelServices.cs
- ProjectedSlot.cs
- FusionWrap.cs
- BitmapFrame.cs
- QilList.cs
- SqlConnectionHelper.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- StaticContext.cs
- ManagementNamedValueCollection.cs
- FormViewPagerRow.cs
- OperandQuery.cs
- MSHTMLHost.cs
- WhiteSpaceTrimStringConverter.cs
- MultipleViewProviderWrapper.cs
- HandleRef.cs
- ScriptResourceAttribute.cs
- Int32RectConverter.cs
- WebConfigurationManager.cs
- KeyValuePair.cs
- CodeLabeledStatement.cs
- ExtensibleClassFactory.cs
- StreamedFramingRequestChannel.cs
- SharedPerformanceCounter.cs
- HtmlEncodedRawTextWriter.cs
- Utils.cs
- EntityDataSourceSelectedEventArgs.cs
- TextDpi.cs
- UserPreferenceChangedEventArgs.cs
- Int32Collection.cs
- BoolExpr.cs
- HttpListenerException.cs
- mda.cs
- Control.cs
- FrameworkElementFactoryMarkupObject.cs
- PaginationProgressEventArgs.cs
- StaticContext.cs
- Package.cs