Exemple #1
0
 private void RecycleBufferElements()
 {
     if (this._buffers != null)
     {
         int count = this._buffers.Count;
         for (int i = 0; i < count; i++)
         {
             HttpBaseMemoryResponseBufferElement element = this._buffers[i] as HttpBaseMemoryResponseBufferElement;
             if (element != null)
             {
                 element.Recycle();
             }
         }
         this._buffers = null;
     }
 }
Exemple #2
0
 internal void DisposeIntegratedBuffers()
 {
     if (this._buffers != null)
     {
         int count = this._buffers.Count;
         for (int i = 0; i < count; i++)
         {
             HttpBaseMemoryResponseBufferElement element = this._buffers[i] as HttpBaseMemoryResponseBufferElement;
             if (element != null)
             {
                 element.Recycle();
             }
         }
         this._buffers = null;
     }
     this.ClearBuffers();
 }