Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MsmqIntegration / MsmqIntegrationMessagePool.cs / 1 / MsmqIntegrationMessagePool.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.MsmqIntegration { using System.ServiceModel.Channels; sealed class MsmqIntegrationMessagePool : SynchronizedDisposablePool, IMsmqMessagePool { int maxPoolSize; internal MsmqIntegrationMessagePool(int maxPoolSize) : base(maxPoolSize) { this.maxPoolSize = maxPoolSize; } MsmqInputMessage IMsmqMessagePool.TakeMessage() { MsmqIntegrationInputMessage message = this.Take(); if (null == message) message = new MsmqIntegrationInputMessage(); return message; } void IMsmqMessagePool.ReturnMessage(MsmqInputMessage message) { if (! this.Return(message as MsmqIntegrationInputMessage)) { MsmqDiagnostics.PoolFull(this.maxPoolSize); message.Dispose(); } } } } // 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
- XmlNullResolver.cs
- StylusCollection.cs
- PrintPageEvent.cs
- Stream.cs
- WebPartZoneCollection.cs
- DataTemplateKey.cs
- SchemaImporterExtensionElementCollection.cs
- TypeUsage.cs
- CrossContextChannel.cs
- UInt16Converter.cs
- ObjectConverter.cs
- ELinqQueryState.cs
- _ConnectOverlappedAsyncResult.cs
- UIElementParaClient.cs
- IIS7WorkerRequest.cs
- ListViewItemSelectionChangedEvent.cs
- EditingMode.cs
- ObjectQuery.cs
- ToolStripPanelDesigner.cs
- SerialPort.cs
- BuildResult.cs
- ProxyGenerator.cs
- COAUTHIDENTITY.cs
- DataBinder.cs
- bindurihelper.cs
- BooleanFacetDescriptionElement.cs
- EdmEntityTypeAttribute.cs
- LoginCancelEventArgs.cs
- OledbConnectionStringbuilder.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Walker.cs
- SortedList.cs
- MembershipValidatePasswordEventArgs.cs
- NetDataContractSerializer.cs
- ExtensionSimplifierMarkupObject.cs
- ObjectView.cs
- WebPartCloseVerb.cs
- PipelineModuleStepContainer.cs
- SHA512Cng.cs
- EnumValAlphaComparer.cs
- MasterPageCodeDomTreeGenerator.cs
- ConsumerConnectionPointCollection.cs
- Camera.cs
- FileSystemEventArgs.cs
- XmlAnyElementAttribute.cs
- ViewManager.cs
- IPPacketInformation.cs
- XmlSchemaSimpleContent.cs
- RuleSettingsCollection.cs
- ConnectionConsumerAttribute.cs
- EvidenceBase.cs
- CompilerErrorCollection.cs
- XmlSchemaSubstitutionGroup.cs
- TouchPoint.cs
- XmlSchemaSimpleTypeRestriction.cs
- CircleHotSpot.cs
- ToolStripDropDownClosingEventArgs.cs
- ProjectionQueryOptionExpression.cs
- CompositeScriptReference.cs
- Int32CAMarshaler.cs
- MetadataArtifactLoaderCompositeResource.cs
- HealthMonitoringSection.cs
- DataGridSortCommandEventArgs.cs
- XmlDataLoader.cs
- InputMethodStateTypeInfo.cs
- SymmetricAlgorithm.cs
- WebConfigurationHostFileChange.cs
- AutomationPropertyInfo.cs
- WebPartDescription.cs
- ModifyActivitiesPropertyDescriptor.cs
- TextBox.cs
- ButtonStandardAdapter.cs
- SurrogateEncoder.cs
- ActiveXMessageFormatter.cs
- __Filters.cs
- AttachedProperty.cs
- XomlCompilerParameters.cs
- UserControl.cs
- DesignerActionUI.cs
- DispatcherEventArgs.cs
- RequestValidator.cs
- WebCodeGenerator.cs
- FileLogRecord.cs
- URLMembershipCondition.cs
- BeginEvent.cs
- TextFormatterImp.cs
- NameValueConfigurationCollection.cs
- EdmComplexTypeAttribute.cs
- VisualBrush.cs
- CfgSemanticTag.cs
- ContextMenuStrip.cs
- TableItemProviderWrapper.cs
- SignatureDescription.cs
- ClientUrlResolverWrapper.cs
- LifetimeServices.cs
- WebPartEditorCancelVerb.cs
- SQLBytesStorage.cs
- ObjectDataSourceView.cs
- ASCIIEncoding.cs
- MbpInfo.cs