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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Queue.cs
- WindowsSlider.cs
- AuthenticationService.cs
- ColumnMapProcessor.cs
- TypeLibConverter.cs
- ObjectContextServiceProvider.cs
- HTTPAPI_VERSION.cs
- UnaryExpressionHelper.cs
- DataGridViewCellPaintingEventArgs.cs
- ProviderMetadata.cs
- IODescriptionAttribute.cs
- TimelineCollection.cs
- LinearKeyFrames.cs
- AutomationPropertyInfo.cs
- WebPartMenuStyle.cs
- BamlRecordReader.cs
- MouseEventArgs.cs
- CompilerLocalReference.cs
- SystemResourceKey.cs
- WebPartEditorOkVerb.cs
- Property.cs
- BitSet.cs
- WorkflowInstanceExtensionManager.cs
- XmlAttribute.cs
- GridViewCancelEditEventArgs.cs
- ByteAnimationBase.cs
- Overlapped.cs
- MessageBox.cs
- ClassData.cs
- WsdlImporterElementCollection.cs
- TripleDESCryptoServiceProvider.cs
- CrossContextChannel.cs
- CollectionContainer.cs
- Stack.cs
- ProcessStartInfo.cs
- HttpApplicationStateBase.cs
- TextParagraphView.cs
- _HeaderInfoTable.cs
- wmiprovider.cs
- XmlResolver.cs
- DBCSCodePageEncoding.cs
- TriggerBase.cs
- TextPointer.cs
- CodeDirectoryCompiler.cs
- Types.cs
- ColumnTypeConverter.cs
- SimpleApplicationHost.cs
- HMACRIPEMD160.cs
- SQLMoney.cs
- DataGridCell.cs
- _SecureChannel.cs
- GridViewHeaderRowPresenter.cs
- PeerResolverBindingElement.cs
- ImageDrawing.cs
- ClickablePoint.cs
- DataBoundControlAdapter.cs
- Transform.cs
- NumberSubstitution.cs
- ControlPaint.cs
- InvalidEnumArgumentException.cs
- OleDbPermission.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ApplicationManager.cs
- EntityDataSourceReferenceGroup.cs
- DataSourceDescriptorCollection.cs
- Region.cs
- WebPartVerbsEventArgs.cs
- HelpEvent.cs
- AdornedElementPlaceholder.cs
- Ref.cs
- FontStretches.cs
- FrameworkReadOnlyPropertyMetadata.cs
- StreamSecurityUpgradeAcceptorBase.cs
- NamespaceMapping.cs
- PathFigureCollection.cs
- StyleXamlTreeBuilder.cs
- LogicalCallContext.cs
- StylusButtonCollection.cs
- RegexFCD.cs
- IntellisenseTextBox.cs
- SingleObjectCollection.cs
- EncoderExceptionFallback.cs
- XmlSerializableWriter.cs
- SRDisplayNameAttribute.cs
- ButtonStandardAdapter.cs
- PointLight.cs
- JournalEntryListConverter.cs
- PhysicalFontFamily.cs
- FrameDimension.cs
- XmlSubtreeReader.cs
- ResXResourceWriter.cs
- XmlCharCheckingReader.cs
- DefaultAsyncDataDispatcher.cs
- SessionEndingCancelEventArgs.cs
- TreeNodeCollection.cs
- EditorPart.cs
- WorkflowApplicationCompletedException.cs
- ByValueEqualityComparer.cs
- WebReferencesBuildProvider.cs
- OrderablePartitioner.cs