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
- DataGridViewRowsRemovedEventArgs.cs
- ReachObjectContext.cs
- DataGridTable.cs
- DetailsViewActionList.cs
- HuffModule.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ToolStripItemClickedEventArgs.cs
- PagedControl.cs
- WebConfigurationHostFileChange.cs
- PropertyChangingEventArgs.cs
- TableItemPatternIdentifiers.cs
- ModelUIElement3D.cs
- Matrix3DConverter.cs
- GeometryCombineModeValidation.cs
- GridViewRowPresenterBase.cs
- DataGridViewColumnTypePicker.cs
- DictionaryBase.cs
- AsymmetricKeyExchangeDeformatter.cs
- SubclassTypeValidatorAttribute.cs
- GenericRootAutomationPeer.cs
- PageCache.cs
- EditCommandColumn.cs
- ContentType.cs
- GridPattern.cs
- BaseCollection.cs
- SqlDuplicator.cs
- RequiredFieldValidator.cs
- ToolStripPanelSelectionBehavior.cs
- UriSectionData.cs
- QueryOutputWriter.cs
- CalloutQueueItem.cs
- DataGridViewRowPostPaintEventArgs.cs
- EqualityComparer.cs
- ScriptIgnoreAttribute.cs
- PrtCap_Public.cs
- RijndaelManaged.cs
- UITypeEditors.cs
- SizeValueSerializer.cs
- PeekCompletedEventArgs.cs
- TargetControlTypeCache.cs
- DataGridViewCellStyleConverter.cs
- ExtensibleSyndicationObject.cs
- RouteItem.cs
- ListBindableAttribute.cs
- Debug.cs
- GridLength.cs
- TextAction.cs
- FontStyle.cs
- BackgroundWorker.cs
- BitmapEffectDrawingContextWalker.cs
- AssociationTypeEmitter.cs
- ToolBarButtonClickEvent.cs
- ExpandSegment.cs
- ReflectionPermission.cs
- MetadataImporterQuotas.cs
- SystemIcmpV6Statistics.cs
- RSAProtectedConfigurationProvider.cs
- XmlSequenceWriter.cs
- ProfileSection.cs
- MaterialGroup.cs
- exports.cs
- ContentPropertyAttribute.cs
- HtmlInputControl.cs
- JsonSerializer.cs
- CharEnumerator.cs
- CodeGeneratorOptions.cs
- SoapIgnoreAttribute.cs
- PngBitmapEncoder.cs
- ResourceCollectionInfo.cs
- PageThemeCodeDomTreeGenerator.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- BufferedReadStream.cs
- Image.cs
- ContextMenuAutomationPeer.cs
- SystemKeyConverter.cs
- returneventsaver.cs
- DropShadowBitmapEffect.cs
- StandardBindingReliableSessionElement.cs
- StorageComplexPropertyMapping.cs
- ReadOnlyPermissionSet.cs
- ThicknessAnimationUsingKeyFrames.cs
- SafeRightsManagementSessionHandle.cs
- FtpWebRequest.cs
- StorageEndPropertyMapping.cs
- Parameter.cs
- SQLConvert.cs
- ErrorFormatter.cs
- PageStatePersister.cs
- XpsImage.cs
- Drawing.cs
- EllipseGeometry.cs
- EntitySetBaseCollection.cs
- GeometryGroup.cs
- UnmanagedMemoryStreamWrapper.cs
- SystemIPv6InterfaceProperties.cs
- HttpHeaderCollection.cs
- ClipboardData.cs
- ButtonStandardAdapter.cs
- ProgressBarHighlightConverter.cs
- BrowserCapabilitiesFactory.cs