Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / ChannelPool.cs / 1 / ChannelPool.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { using System.Collections.Generic; using System.ServiceModel; using System.Runtime.Serialization; using System.Xml; using System.ServiceModel.Description; using System.ServiceModel.Security; using System.Text; ////// Pool of channels used by OneWayChannelFactories /// class ChannelPool: IdlingCommunicationPool where TChannel : class, IChannel { public ChannelPool(ChannelPoolSettings settings) : base(settings.MaxOutboundChannelsPerEndpoint, settings.IdleTimeout, settings.LeaseTimeout) { } protected override void AbortItem(TChannel item) { item.Abort(); } protected override void CloseItem(TChannel item, TimeSpan timeout) { item.Close(timeout); } protected override ChannelPoolKey GetPoolKey(EndpointAddress address, Uri via) { return new ChannelPoolKey(address, via); } } class ChannelPoolKey : IEquatable { EndpointAddress address; Uri via; public ChannelPoolKey(EndpointAddress address, Uri via) { this.address = address; this.via = via; } public override int GetHashCode() { return address.GetHashCode() + via.GetHashCode(); } public bool Equals(ChannelPoolKey other) { return address.EndpointEquals(other.address) && via.Equals(other.via); } } } // 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
- MessagePartDescriptionCollection.cs
- BitmapPalettes.cs
- ScriptResourceInfo.cs
- IpcServerChannel.cs
- EmptyCollection.cs
- FrameworkElement.cs
- UserControlAutomationPeer.cs
- CompModSwitches.cs
- DiscoveryClientOutputChannel.cs
- ScriptBehaviorDescriptor.cs
- SkinIDTypeConverter.cs
- DBSchemaTable.cs
- LinqDataSourceView.cs
- TypeDefinition.cs
- EpmTargetTree.cs
- DES.cs
- QilLoop.cs
- InstanceData.cs
- WorkflowRuntimeElement.cs
- GuidTagList.cs
- StringKeyFrameCollection.cs
- CodeDOMProvider.cs
- DocumentApplication.cs
- recordstatefactory.cs
- LayeredChannelListener.cs
- UdpUtility.cs
- SoapWriter.cs
- CurrentChangingEventManager.cs
- ToolCreatedEventArgs.cs
- GetPageCompletedEventArgs.cs
- BasicKeyConstraint.cs
- FastEncoder.cs
- RoleGroupCollection.cs
- EntityContainerEmitter.cs
- ProviderCommandInfoUtils.cs
- PageThemeCodeDomTreeGenerator.cs
- PointValueSerializer.cs
- CommentAction.cs
- NavigationWindow.cs
- Domain.cs
- CallSite.cs
- Schema.cs
- DocumentViewerBase.cs
- ClientViaElement.cs
- WindowPattern.cs
- TypeUtil.cs
- NativeMethods.cs
- InternalBufferManager.cs
- ColorAnimationUsingKeyFrames.cs
- CryptoConfig.cs
- RequiredAttributeAttribute.cs
- Input.cs
- ListGeneralPage.cs
- EventRouteFactory.cs
- IIS7WorkerRequest.cs
- DataGridLinkButton.cs
- EmbeddedMailObject.cs
- Membership.cs
- AppDomainAttributes.cs
- URL.cs
- XmlIlVisitor.cs
- ListViewSortEventArgs.cs
- ScriptControlManager.cs
- ArgumentsParser.cs
- EntityCollection.cs
- InkCanvas.cs
- PropertyGeneratedEventArgs.cs
- XmlPreloadedResolver.cs
- HtmlTitle.cs
- PrefixQName.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TagPrefixAttribute.cs
- CompileXomlTask.cs
- WinInet.cs
- PropertyGeneratedEventArgs.cs
- BackStopAuthenticationModule.cs
- ToReply.cs
- ToggleProviderWrapper.cs
- RegexTypeEditor.cs
- MissingMemberException.cs
- GridViewColumnCollectionChangedEventArgs.cs
- BitmapEffectInput.cs
- DataBoundLiteralControl.cs
- ToolStripDropDownItem.cs
- SystemResourceKey.cs
- TableSectionStyle.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- _HeaderInfo.cs
- BamlTreeNode.cs
- GeneralTransform.cs
- CustomLineCap.cs
- HttpServerVarsCollection.cs
- SqlDataSourceFilteringEventArgs.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ValidationErrorCollection.cs
- CultureInfo.cs
- DoubleAnimationUsingKeyFrames.cs
- BuildResult.cs
- WindowsComboBox.cs
- XMLDiffLoader.cs