Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / MsmqInputMessagePool.cs / 1 / MsmqInputMessagePool.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { interface IMsmqMessagePool : IDisposable { MsmqInputMessage TakeMessage(); void ReturnMessage(MsmqInputMessage message); } sealed class MsmqInputMessagePool : SynchronizedDisposablePool, IMsmqMessagePool { int maxPoolSize; internal MsmqInputMessagePool(int maxPoolSize) : base(maxPoolSize) { this.maxPoolSize = maxPoolSize; } MsmqInputMessage IMsmqMessagePool.TakeMessage() { MsmqInputMessage message = this.Take(); if (null == message) message = new MsmqInputMessage(); return message; } void IMsmqMessagePool.ReturnMessage(MsmqInputMessage message) { if (! this.Return(message)) { 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
- SspiHelper.cs
- WebZone.cs
- WebPartConnectionsCloseVerb.cs
- StrokeSerializer.cs
- listviewsubitemcollectioneditor.cs
- BaseValidator.cs
- ArcSegment.cs
- HwndHostAutomationPeer.cs
- DelayDesigner.cs
- ModulesEntry.cs
- GridViewRow.cs
- AlternateViewCollection.cs
- MetadataItemCollectionFactory.cs
- SymbolTable.cs
- LassoSelectionBehavior.cs
- SafePEFileHandle.cs
- ShapingWorkspace.cs
- PageParserFilter.cs
- XPathNodePointer.cs
- DataGridViewRowEventArgs.cs
- ItemAutomationPeer.cs
- MinimizableAttributeTypeConverter.cs
- WebMessageBodyStyleHelper.cs
- WsdlBuildProvider.cs
- TemplateKeyConverter.cs
- EntityContainerEntitySet.cs
- DataServices.cs
- DataTableClearEvent.cs
- SchemaConstraints.cs
- MobileControlPersister.cs
- XmlTypeAttribute.cs
- Vector3DValueSerializer.cs
- GridViewCellAutomationPeer.cs
- TimeStampChecker.cs
- XmlLoader.cs
- configsystem.cs
- XmlQueryStaticData.cs
- StorageScalarPropertyMapping.cs
- DataGridViewRowStateChangedEventArgs.cs
- StringComparer.cs
- SpecularMaterial.cs
- PeerFlooder.cs
- ACE.cs
- ContextMarshalException.cs
- ProjectionPruner.cs
- WebPartEventArgs.cs
- PositiveTimeSpanValidatorAttribute.cs
- TracePayload.cs
- WmlObjectListAdapter.cs
- DependencyObjectPropertyDescriptor.cs
- GridEntryCollection.cs
- StateBag.cs
- StickyNoteAnnotations.cs
- Error.cs
- BitmapPalettes.cs
- ResourceDescriptionAttribute.cs
- XmlHierarchyData.cs
- _SslSessionsCache.cs
- Decorator.cs
- UrlMappingCollection.cs
- XpsS0ValidatingLoader.cs
- UInt32.cs
- SplineKeyFrames.cs
- UnknownWrapper.cs
- GenericTypeParameterBuilder.cs
- CroppedBitmap.cs
- StatusBarItemAutomationPeer.cs
- PrePostDescendentsWalker.cs
- wgx_render.cs
- TaskFormBase.cs
- SmtpNetworkElement.cs
- XMLDiffLoader.cs
- IgnoreFileBuildProvider.cs
- XmlLangPropertyAttribute.cs
- ObjectDesignerDataSourceView.cs
- SizeAnimation.cs
- DataContractJsonSerializer.cs
- DescendantBaseQuery.cs
- XmlNodeChangedEventArgs.cs
- SqlDataSourceStatusEventArgs.cs
- ScriptControlDescriptor.cs
- WebBrowser.cs
- HtmlUtf8RawTextWriter.cs
- RegexWorker.cs
- VirtualizingStackPanel.cs
- RectangleHotSpot.cs
- HttpCookie.cs
- VarRemapper.cs
- ListChangedEventArgs.cs
- TemplateKey.cs
- MetadataCache.cs
- QuaternionKeyFrameCollection.cs
- X509PeerCertificateElement.cs
- base64Transforms.cs
- HyperLinkStyle.cs
- DataSourceViewSchemaConverter.cs
- AssociatedControlConverter.cs
- ConsumerConnectionPoint.cs
- StylusPointCollection.cs
- SingleStorage.cs