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
- TransformGroup.cs
- AssemblyEvidenceFactory.cs
- ScriptingProfileServiceSection.cs
- NumberFunctions.cs
- TypeBuilder.cs
- SafeRightsManagementQueryHandle.cs
- ExpressionPrefixAttribute.cs
- UInt64Converter.cs
- ValidationErrorEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- LifetimeServices.cs
- XPathNavigator.cs
- OperatorExpressions.cs
- MissingManifestResourceException.cs
- MailSettingsSection.cs
- NativeMethods.cs
- StorageEntityTypeMapping.cs
- ProfileProvider.cs
- FileDialogCustomPlaces.cs
- XmlUtil.cs
- SelectionPattern.cs
- COM2IProvidePropertyBuilderHandler.cs
- CodeSnippetCompileUnit.cs
- RtfToXamlReader.cs
- CompositeControl.cs
- COAUTHIDENTITY.cs
- EntityDataSourceQueryBuilder.cs
- RowBinding.cs
- CheckBoxRenderer.cs
- PbrsForward.cs
- TraceSwitch.cs
- Group.cs
- Rotation3D.cs
- WindowsRichEditRange.cs
- codemethodreferenceexpression.cs
- MetadataArtifactLoaderCompositeFile.cs
- LifetimeServices.cs
- Line.cs
- StyleCollection.cs
- Cast.cs
- SizeValueSerializer.cs
- BuilderInfo.cs
- documentsequencetextview.cs
- WebPartVerb.cs
- LinearGradientBrush.cs
- Rotation3DAnimation.cs
- OrthographicCamera.cs
- DataServiceContext.cs
- WmpBitmapDecoder.cs
- XPathScanner.cs
- ServiceHostFactory.cs
- MessageHeaderT.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- _CacheStreams.cs
- SqlDuplicator.cs
- BitConverter.cs
- MediaTimeline.cs
- HtmlSelect.cs
- ProfileSettingsCollection.cs
- Line.cs
- HebrewNumber.cs
- ContextStack.cs
- CompositeFontInfo.cs
- CodeParameterDeclarationExpression.cs
- ChangePassword.cs
- EventMappingSettingsCollection.cs
- SemanticResultKey.cs
- RecipientInfo.cs
- ObjectListComponentEditor.cs
- DataBoundControlAdapter.cs
- SizeAnimationUsingKeyFrames.cs
- CreateUserErrorEventArgs.cs
- MenuAdapter.cs
- ToolStripGrip.cs
- WindowsAuthenticationModule.cs
- EditorServiceContext.cs
- Validator.cs
- EventManager.cs
- OleDbConnectionInternal.cs
- UnsafeNativeMethods.cs
- AppModelKnownContentFactory.cs
- Crc32.cs
- DragSelectionMessageFilter.cs
- TableLayoutSettings.cs
- SqlDataAdapter.cs
- ReadonlyMessageFilter.cs
- ConfigXmlElement.cs
- ObfuscateAssemblyAttribute.cs
- RegexStringValidator.cs
- GorillaCodec.cs
- MDIWindowDialog.cs
- SafeArrayTypeMismatchException.cs
- WindowHideOrCloseTracker.cs
- FileUpload.cs
- DataGridViewCellStyleConverter.cs
- XmlIterators.cs
- Expander.cs
- ToolStripDropDownClosingEventArgs.cs
- GetFileNameResult.cs
- VariableValue.cs