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
- Cell.cs
- Exception.cs
- DependencyPropertyHelper.cs
- BoolExpr.cs
- ComAdminWrapper.cs
- RadioButtonList.cs
- HostSecurityManager.cs
- ColorMap.cs
- _AutoWebProxyScriptEngine.cs
- Input.cs
- FieldReference.cs
- DictionaryCustomTypeDescriptor.cs
- BuilderPropertyEntry.cs
- VerticalAlignConverter.cs
- TypefaceCollection.cs
- WindowsServiceCredential.cs
- DbTypeMap.cs
- GroupJoinQueryOperator.cs
- XmlChoiceIdentifierAttribute.cs
- LogicalExpr.cs
- DataSourceUtil.cs
- IteratorFilter.cs
- ReaderWriterLockSlim.cs
- CodeTypeReferenceExpression.cs
- ToolStripRenderer.cs
- SqlMethodCallConverter.cs
- StringOutput.cs
- PropertyToken.cs
- AdapterSwitches.cs
- SpecialNameAttribute.cs
- Margins.cs
- KoreanCalendar.cs
- PointHitTestParameters.cs
- WebMessageEncodingElement.cs
- ResourceReferenceExpression.cs
- Soap12FormatExtensions.cs
- PeerResolverSettings.cs
- VariableAction.cs
- DrawingDrawingContext.cs
- ConfigurationValue.cs
- GatewayIPAddressInformationCollection.cs
- ArcSegment.cs
- ObjectFullSpanRewriter.cs
- SessionSwitchEventArgs.cs
- RightsManagementEncryptedStream.cs
- TraceUtility.cs
- Label.cs
- ConfigurationSectionGroup.cs
- NativeRightsManagementAPIsStructures.cs
- InboundActivityHelper.cs
- XmlBaseReader.cs
- FrameworkElementFactory.cs
- VisualStyleTypesAndProperties.cs
- HitTestResult.cs
- UntrustedRecipientException.cs
- PathData.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- IndexedString.cs
- CodeFieldReferenceExpression.cs
- SqlBulkCopyColumnMapping.cs
- RawAppCommandInputReport.cs
- CallContext.cs
- PerspectiveCamera.cs
- MatrixAnimationUsingPath.cs
- LineInfo.cs
- LinqDataSourceSelectEventArgs.cs
- PointHitTestParameters.cs
- FolderNameEditor.cs
- HwndHost.cs
- odbcmetadatacollectionnames.cs
- SspiWrapper.cs
- XmlSchemaComplexContentExtension.cs
- Ref.cs
- GeometryCollection.cs
- ContainerUtilities.cs
- HyperLinkDesigner.cs
- OracleDataAdapter.cs
- EdmComplexPropertyAttribute.cs
- DataGridViewCellValueEventArgs.cs
- DecoderExceptionFallback.cs
- AccessDataSource.cs
- GifBitmapDecoder.cs
- ErrorInfoXmlDocument.cs
- UnknownBitmapEncoder.cs
- SecurityChannelListener.cs
- NonBatchDirectoryCompiler.cs
- NumberFormatInfo.cs
- SpeakCompletedEventArgs.cs
- FrameworkElement.cs
- ToolStripItemEventArgs.cs
- BufferModesCollection.cs
- ExceptionUtil.cs
- SchemaNamespaceManager.cs
- EditorBrowsableAttribute.cs
- ContextMenuStripGroup.cs
- DefaultValueAttribute.cs
- CustomValidator.cs
- BStrWrapper.cs
- XPathArrayIterator.cs
- UriTemplateDispatchFormatter.cs