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
- CollectionViewSource.cs
- SoapExtensionReflector.cs
- HttpListenerContext.cs
- SqlDataAdapter.cs
- Int64.cs
- FrameworkTemplate.cs
- NullableFloatMinMaxAggregationOperator.cs
- ValidationRule.cs
- EncoderParameters.cs
- _LazyAsyncResult.cs
- BitmapDownload.cs
- SafeLibraryHandle.cs
- DataGridViewColumnCollection.cs
- NullableDoubleAverageAggregationOperator.cs
- SQLByteStorage.cs
- ServiceDeploymentInfo.cs
- DictionaryEntry.cs
- HttpHeaderCollection.cs
- Pair.cs
- PeerInputChannel.cs
- OracleBinary.cs
- FixedPageAutomationPeer.cs
- SafeViewOfFileHandle.cs
- TypefaceMap.cs
- Selection.cs
- AdornerPresentationContext.cs
- HttpCapabilitiesEvaluator.cs
- TreeNodeConverter.cs
- DataGridColumnsPage.cs
- SqlRowUpdatingEvent.cs
- DocumentXPathNavigator.cs
- DecimalAnimationBase.cs
- MinimizableAttributeTypeConverter.cs
- CodeGen.cs
- ContextDataSourceView.cs
- MobileTextWriter.cs
- AttributeCollection.cs
- ModelItemDictionaryImpl.cs
- JapaneseLunisolarCalendar.cs
- IconConverter.cs
- AssemblyCache.cs
- AdjustableArrowCap.cs
- DataBindingExpressionBuilder.cs
- _RequestLifetimeSetter.cs
- ControlEvent.cs
- SqlBuilder.cs
- TransactionState.cs
- TextTreeUndoUnit.cs
- SamlAttribute.cs
- PolicyStatement.cs
- MetadataPropertyCollection.cs
- EncryptedType.cs
- ConstraintCollection.cs
- DynamicMethod.cs
- ConfigXmlElement.cs
- CultureInfo.cs
- FlowLayoutPanel.cs
- ToolStripItemEventArgs.cs
- XsltArgumentList.cs
- ThaiBuddhistCalendar.cs
- UInt64Storage.cs
- ListView.cs
- EntityTransaction.cs
- PolyBezierSegment.cs
- UrlAuthFailedErrorFormatter.cs
- Validator.cs
- ListBoxItemAutomationPeer.cs
- OleDbPropertySetGuid.cs
- MessageSmuggler.cs
- ElementsClipboardData.cs
- SplashScreenNativeMethods.cs
- SimpleRecyclingCache.cs
- WindowsTooltip.cs
- nulltextnavigator.cs
- MasterPageBuildProvider.cs
- UserPreferenceChangedEventArgs.cs
- GeometryGroup.cs
- CustomAttributeFormatException.cs
- SelectionItemPattern.cs
- HttpContext.cs
- DefaultObjectMappingItemCollection.cs
- AxParameterData.cs
- UnionCodeGroup.cs
- X509DefaultServiceCertificateElement.cs
- TextBoxRenderer.cs
- FactoryGenerator.cs
- CodeGeneratorOptions.cs
- XmlSerializationWriter.cs
- WebPartCollection.cs
- Timer.cs
- MultiBindingExpression.cs
- InternalsVisibleToAttribute.cs
- FontStyles.cs
- WorkItem.cs
- OptimalBreakSession.cs
- RewritingValidator.cs
- MemoryMappedViewStream.cs
- DBProviderConfigurationHandler.cs
- ListViewItemSelectionChangedEvent.cs
- CqlLexer.cs