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
- DocumentDesigner.cs
- Attributes.cs
- MulticastDelegate.cs
- SQLInt32Storage.cs
- NavigationWindowAutomationPeer.cs
- remotingproxy.cs
- bidPrivateBase.cs
- PartialTrustHelpers.cs
- Funcletizer.cs
- ModelFunction.cs
- DataGridRowHeader.cs
- EventOpcode.cs
- TaskExceptionHolder.cs
- DispatcherFrame.cs
- ConfigurationErrorsException.cs
- DataQuery.cs
- ResourceProperty.cs
- ContentFileHelper.cs
- GridLengthConverter.cs
- VariableAction.cs
- TextEffect.cs
- SystemIcons.cs
- IdnMapping.cs
- Barrier.cs
- Random.cs
- MouseGestureConverter.cs
- SqlColumnizer.cs
- FolderBrowserDialog.cs
- COM2ICategorizePropertiesHandler.cs
- SpecialFolderEnumConverter.cs
- ZipIOLocalFileBlock.cs
- ImageMap.cs
- Parser.cs
- SQLDateTime.cs
- ShaderEffect.cs
- OleDbWrapper.cs
- StrokeIntersection.cs
- WebRequestModuleElementCollection.cs
- ToolBarButtonClickEvent.cs
- UpdateInfo.cs
- __TransparentProxy.cs
- ITextView.cs
- SvcMapFileLoader.cs
- SymmetricAlgorithm.cs
- HighlightComponent.cs
- DbConnectionFactory.cs
- ApplicationException.cs
- WindowsSlider.cs
- ToolStripDropDownMenu.cs
- SvcFileManager.cs
- InkCanvasSelectionAdorner.cs
- WorkflowCommandExtensionItem.cs
- FillRuleValidation.cs
- DataGridRow.cs
- Inflater.cs
- RoutingBehavior.cs
- CmsUtils.cs
- HttpServerProtocol.cs
- _OSSOCK.cs
- IsolatedStoragePermission.cs
- Int32KeyFrameCollection.cs
- PropertyValueChangedEvent.cs
- CodeAttachEventStatement.cs
- CollaborationHelperFunctions.cs
- WindowCollection.cs
- ApplicationSecurityInfo.cs
- Int32KeyFrameCollection.cs
- dataobject.cs
- COAUTHINFO.cs
- QueryOutputWriter.cs
- Attributes.cs
- BinaryObjectReader.cs
- TextPointerBase.cs
- Context.cs
- SelectorItemAutomationPeer.cs
- exports.cs
- TimerElapsedEvenArgs.cs
- ButtonField.cs
- InternalConfigSettingsFactory.cs
- PropertyTab.cs
- TableRowsCollectionEditor.cs
- FormDocumentDesigner.cs
- BmpBitmapDecoder.cs
- MdImport.cs
- GridViewCancelEditEventArgs.cs
- followingquery.cs
- IChannel.cs
- XPathDocument.cs
- ProfileBuildProvider.cs
- QilGeneratorEnv.cs
- ParsedAttributeCollection.cs
- RuleValidation.cs
- ExpandableObjectConverter.cs
- SQLDecimalStorage.cs
- DataGridColumnDropSeparator.cs
- ExternalFile.cs
- RootBrowserWindowAutomationPeer.cs
- X509ClientCertificateAuthenticationElement.cs
- ADMembershipProvider.cs
- PropertyNames.cs