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
- TransferRequestHandler.cs
- TimelineCollection.cs
- DateTimeValueSerializer.cs
- ObjectMemberMapping.cs
- Visual3DCollection.cs
- DocumentsTrace.cs
- TabControlEvent.cs
- CompilerGeneratedAttribute.cs
- DbReferenceCollection.cs
- _LocalDataStore.cs
- Funcletizer.cs
- RepeatBehavior.cs
- GridProviderWrapper.cs
- XamlSerializerUtil.cs
- DataObjectCopyingEventArgs.cs
- Highlights.cs
- ReceiveActivity.cs
- RegistrationServices.cs
- MediaElement.cs
- URI.cs
- CodeGeneratorAttribute.cs
- DBDataPermission.cs
- KeyGestureConverter.cs
- MeasureData.cs
- DragCompletedEventArgs.cs
- streamingZipPartStream.cs
- WsatServiceCertificate.cs
- EventMemberCodeDomSerializer.cs
- Update.cs
- HtmlControl.cs
- DataGridViewControlCollection.cs
- XMLDiffLoader.cs
- DocumentViewer.cs
- MemoryMappedView.cs
- TreeWalkHelper.cs
- RectAnimationClockResource.cs
- AccessedThroughPropertyAttribute.cs
- ImageCodecInfo.cs
- DataSourceControlBuilder.cs
- MaskedTextBoxDesignerActionList.cs
- TextParagraphCache.cs
- ScriptResourceAttribute.cs
- MissingMethodException.cs
- SerializableReadOnlyDictionary.cs
- DataBoundControlParameterTarget.cs
- StorageEntitySetMapping.cs
- DocComment.cs
- MouseButton.cs
- Attributes.cs
- MultipleViewPattern.cs
- CodeThrowExceptionStatement.cs
- baseshape.cs
- BridgeDataRecord.cs
- WsatServiceCertificate.cs
- QueryStringParameter.cs
- ISO2022Encoding.cs
- Timer.cs
- AssemblyHash.cs
- Vector3DKeyFrameCollection.cs
- MemberListBinding.cs
- ControlCollection.cs
- InkSerializer.cs
- CodeDOMProvider.cs
- BaseComponentEditor.cs
- KnownBoxes.cs
- SecurityHelper.cs
- InternalSafeNativeMethods.cs
- DurableInstance.cs
- SqlClientPermission.cs
- EditorZone.cs
- BeginStoryboard.cs
- ContentValidator.cs
- ComAdminWrapper.cs
- OpacityConverter.cs
- PointUtil.cs
- GlyphRunDrawing.cs
- OneOfConst.cs
- DBAsyncResult.cs
- AssemblyAttributesGoHere.cs
- ScrollChrome.cs
- ScrollEventArgs.cs
- PenLineCapValidation.cs
- _ChunkParse.cs
- RemoteWebConfigurationHost.cs
- StackOverflowException.cs
- ImageCodecInfoPrivate.cs
- LayoutEvent.cs
- SelectedDatesCollection.cs
- MailMessage.cs
- HttpRawResponse.cs
- GestureRecognitionResult.cs
- ReturnType.cs
- VirtualDirectoryMappingCollection.cs
- VoiceChangeEventArgs.cs
- SqlRowUpdatedEvent.cs
- DatagramAdapter.cs
- PriorityBinding.cs
- CollectionViewGroupInternal.cs
- XmlAnyElementAttribute.cs
- ArgumentValueSerializer.cs