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
- WebBrowserUriTypeConverter.cs
- StorageModelBuildProvider.cs
- TextTrailingCharacterEllipsis.cs
- ComProxy.cs
- UniqueContractNameValidationBehavior.cs
- VectorAnimationBase.cs
- ObjectCloneHelper.cs
- ScrollEventArgs.cs
- DebuggerAttributes.cs
- TableStyle.cs
- EventLogStatus.cs
- MenuItemStyleCollection.cs
- HtmlSelectionListAdapter.cs
- InstanceNameConverter.cs
- ADConnectionHelper.cs
- UInt32Storage.cs
- List.cs
- DateTimeSerializationSection.cs
- ViewStateModeByIdAttribute.cs
- BufferedWebEventProvider.cs
- DocumentPageTextView.cs
- AxisAngleRotation3D.cs
- LocatorManager.cs
- DateTimeParse.cs
- EventSinkHelperWriter.cs
- ComplexType.cs
- OracleDataReader.cs
- SqlMethodAttribute.cs
- XmlNamespaceManager.cs
- WebServiceData.cs
- DocumentGridContextMenu.cs
- ReflectionUtil.cs
- PrimaryKeyTypeConverter.cs
- GlobalizationSection.cs
- FixedSOMPageConstructor.cs
- WebHttpBehavior.cs
- ClientData.cs
- ComAdminInterfaces.cs
- DbModificationCommandTree.cs
- AppDomainProtocolHandler.cs
- SignatureHelper.cs
- ChtmlSelectionListAdapter.cs
- SparseMemoryStream.cs
- __Error.cs
- ConfigurationStrings.cs
- TemplatePropertyEntry.cs
- ScrollChrome.cs
- SingleObjectCollection.cs
- UnsafePeerToPeerMethods.cs
- ProjectedSlot.cs
- HostUtils.cs
- VSDExceptions.cs
- ConfigurationConverterBase.cs
- InternalDispatchObject.cs
- StringValueConverter.cs
- PageThemeCodeDomTreeGenerator.cs
- RuntimeConfigLKG.cs
- WebBrowser.cs
- OleDbEnumerator.cs
- ParameterBuilder.cs
- EncryptedReference.cs
- ToolStripComboBox.cs
- XmlSchemaInclude.cs
- MenuItemBinding.cs
- TabControlCancelEvent.cs
- WpfXamlMember.cs
- FacetValues.cs
- TogglePatternIdentifiers.cs
- Utils.cs
- SizeFConverter.cs
- FunctionDescription.cs
- SqlNode.cs
- DiagnosticStrings.cs
- processwaithandle.cs
- BindingsSection.cs
- Rect.cs
- QilLoop.cs
- SiteMapNode.cs
- ValidationEventArgs.cs
- SignerInfo.cs
- CodeRegionDirective.cs
- Scheduler.cs
- NamespaceQuery.cs
- FormsAuthenticationEventArgs.cs
- SqlException.cs
- DataColumnPropertyDescriptor.cs
- XmlSchemas.cs
- DesignerCapabilities.cs
- CodeValidator.cs
- UnsafeNativeMethods.cs
- SecureEnvironment.cs
- FillErrorEventArgs.cs
- SQLBoolean.cs
- BufferedGraphics.cs
- ServiceErrorHandler.cs
- DataSourceDescriptorCollection.cs
- ProgressBarRenderer.cs
- ConnectionManagementSection.cs
- DataControlFieldTypeEditor.cs
- QueryConverter.cs