예제 #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);
 }