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
- SecurityContext.cs
- RectangleGeometry.cs
- LinkArea.cs
- ServicePointManager.cs
- XmlIncludeAttribute.cs
- ScriptManager.cs
- XPathMessageFilter.cs
- RelationshipDetailsRow.cs
- WindowAutomationPeer.cs
- CustomGrammar.cs
- ApplicationFileParser.cs
- CoreSwitches.cs
- SoapReflector.cs
- FrameworkContentElement.cs
- EditorPartChrome.cs
- XmlSerializableServices.cs
- Thumb.cs
- ProfileElement.cs
- TraceUtils.cs
- NetTcpSecurityElement.cs
- MessageSmuggler.cs
- GlyphingCache.cs
- FormCollection.cs
- BinaryObjectWriter.cs
- RbTree.cs
- WinEventHandler.cs
- DbDataSourceEnumerator.cs
- TemplateParser.cs
- DataGridColumnHeader.cs
- DirectoryNotFoundException.cs
- XsdDateTime.cs
- Cursors.cs
- DispatcherFrame.cs
- EncoderParameter.cs
- NotConverter.cs
- ScriptControlManager.cs
- ProviderConnectionPointCollection.cs
- QueryRewriter.cs
- BamlTreeMap.cs
- FileVersionInfo.cs
- BulletedList.cs
- GACIdentityPermission.cs
- CodeNamespaceImportCollection.cs
- CalendarModeChangedEventArgs.cs
- ExceptionUtil.cs
- ExtensionSimplifierMarkupObject.cs
- QueryExpr.cs
- ErrorHandler.cs
- RemoteWebConfigurationHostStream.cs
- WindowsUpDown.cs
- DataGridViewColumnEventArgs.cs
- RightsManagementEncryptedStream.cs
- MSHTMLHost.cs
- ParameterReplacerVisitor.cs
- GPRECT.cs
- SqlReferenceCollection.cs
- AssertFilter.cs
- CannotUnloadAppDomainException.cs
- CollectionType.cs
- SqlRemoveConstantOrderBy.cs
- ResourceManager.cs
- TreeNodeStyle.cs
- ScriptingProfileServiceSection.cs
- SynchronizationValidator.cs
- SafeNativeMethods.cs
- X509CertificateValidator.cs
- BufferedReadStream.cs
- WindowsFormsSectionHandler.cs
- OdbcDataAdapter.cs
- EFTableProvider.cs
- MsmqAppDomainProtocolHandler.cs
- Accessible.cs
- MbpInfo.cs
- SafeRightsManagementEnvironmentHandle.cs
- hwndwrapper.cs
- ValidationContext.cs
- IdentityReference.cs
- QueryOutputWriter.cs
- Message.cs
- FakeModelItemImpl.cs
- Html32TextWriter.cs
- OleServicesContext.cs
- RoutedEventHandlerInfo.cs
- SecurityPolicySection.cs
- FactoryRecord.cs
- FilteredAttributeCollection.cs
- ConditionCollection.cs
- StringBuilder.cs
- CommandExpr.cs
- XmlTextEncoder.cs
- SecureStringHasher.cs
- SHA256.cs
- versioninfo.cs
- DuplexSecurityProtocolFactory.cs
- Point4DValueSerializer.cs
- GeneratedCodeAttribute.cs
- OleDbCommand.cs
- WebPartDisplayModeEventArgs.cs
- ButtonStandardAdapter.cs
- DataKey.cs