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