Recycle() 정적인 개인적인 메소드

static private Recycle ( FileReadStream stream ) : void
stream FileReadStream
리턴 void
예제 #1
0
 public override void Close()
 {
     if (!killed)
     {
         FileStreamCache.Recycle(this);
         return;
     }
     base.Close();
     logger.DebugFormat("Closed file {0}", info.FullName);
 }
예제 #2
0
 public override void Close()
 {
     if (this.CanRead || this.CanSeek)
     {
         //baseFile.lastpos = System.Math.Max(this.Position, baseFile.lastpos);
         if (this.Position > 0 && baseFile.lastpos != this.Position && (this.Position * 100 / this.Length >= 8 || baseFile.lastpos == 0))
         {
             baseFile.lastpos = this.Position;
             baseFile.UpdateCache();
         }
     }
     if (!killed)
     {
         FileStreamCache.Recycle(this);
         return;
     }
     base.Close();
     logger.DebugFormat("Closed file {0}", info.FullName);
 }