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
- SerializationEventsCache.cs
- TableParaClient.cs
- EmbossBitmapEffect.cs
- SafeBitVector32.cs
- BuilderInfo.cs
- BinaryMessageEncodingBindingElement.cs
- WmfPlaceableFileHeader.cs
- XamlSerializerUtil.cs
- CodeDomConfigurationHandler.cs
- VerticalAlignConverter.cs
- PropertyDescriptorCollection.cs
- RegexCompiler.cs
- ColorTransformHelper.cs
- TextBox.cs
- FromReply.cs
- SqlInternalConnectionTds.cs
- connectionpool.cs
- ExternalFile.cs
- DateTimeValueSerializerContext.cs
- DateTime.cs
- TableRowCollection.cs
- TextTreeExtractElementUndoUnit.cs
- EnterpriseServicesHelper.cs
- DrawingContextWalker.cs
- BrowserCapabilitiesFactoryBase.cs
- DateTimeStorage.cs
- AutomationPatternInfo.cs
- ObjectSpanRewriter.cs
- PageContent.cs
- Font.cs
- GlyphRun.cs
- CacheMemory.cs
- ProcessProtocolHandler.cs
- InheritanceRules.cs
- PointHitTestResult.cs
- QilPatternFactory.cs
- ContentType.cs
- ReadOnlyDataSourceView.cs
- Validator.cs
- PathGradientBrush.cs
- WindowCollection.cs
- ellipse.cs
- XmlCharType.cs
- graph.cs
- ContainerParaClient.cs
- PlainXmlDeserializer.cs
- EncryptedReference.cs
- XmlSchemaGroupRef.cs
- ReturnValue.cs
- ArgumentNullException.cs
- PerformanceCounterManager.cs
- FixedSOMTextRun.cs
- InfoCardSymmetricAlgorithm.cs
- XmlByteStreamReader.cs
- Boolean.cs
- GACMembershipCondition.cs
- HtmlShim.cs
- MenuItemCollection.cs
- ProxyGenerationError.cs
- AnimationLayer.cs
- InkCanvas.cs
- DifferencingCollection.cs
- OdbcTransaction.cs
- UITypeEditor.cs
- String.cs
- MetaData.cs
- ObjectQueryProvider.cs
- AuthenticationModuleElement.cs
- IntegerValidatorAttribute.cs
- ContentValidator.cs
- Tag.cs
- DefaultAssemblyResolver.cs
- QuotedPrintableStream.cs
- ColorConverter.cs
- Mappings.cs
- SecUtil.cs
- MethodImplAttribute.cs
- EventDescriptor.cs
- CodeBlockBuilder.cs
- SqlFunctions.cs
- SHA1.cs
- IndependentAnimationStorage.cs
- CodeTypeOfExpression.cs
- ViewCellRelation.cs
- ConfigurationLocationCollection.cs
- CategoryAttribute.cs
- ObjectDataSourceFilteringEventArgs.cs
- AmbiguousMatchException.cs
- FieldNameLookup.cs
- WebZone.cs
- DataSetUtil.cs
- DataServiceHostFactory.cs
- SchemaCollectionPreprocessor.cs
- TableStyle.cs
- ProgressChangedEventArgs.cs
- MatrixAnimationBase.cs
- ListView.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- WebBrowserNavigatingEventHandler.cs
- _WinHttpWebProxyDataBuilder.cs