public void DoReturnMessageState(RecycledMessageState messageState) { if (_messageState == null) { _messageState = messageState; } else { _messageStatePool.Return(messageState); } }
internal void ReturnStreamedReader(XmlDictionaryReader xmlReader) { _streamedReaderPool.Return(xmlReader); }
internal void ReturnMessageWriter(MtomMessageEncoder.MtomBufferedMessageWriter messageWriter) { _bufferedWriterPool.Return(messageWriter); }
internal void ReturnBufferedData(MtomMessageEncoder.MtomBufferedMessageData messageData) { _bufferedReaderPool.Return(messageData); }
internal void ReturnStreamedWriter(XmlDictionaryWriter xmlWriter) { xmlWriter.Close(); _streamedWriterPool.Return(xmlWriter); }