Esempio n. 1
0
 public void Close(FileWrapper file)
 {
     lock (this)
     {
         if (_files.ContainsKey(file.Path))
         {
             FileCounter counter = _files[file.Path];
             if (--counter.Count == 0)
             {
                 counter.Stream.Close();
                 _files.Remove(file.Path);
             }
         }
     }
 }
Esempio n. 2
0
 public void Close(FileWrapper file)
 {
     lock (this)
     {
         if (_files.ContainsKey(file.Path))
         {
             FileCounter counter = _files[file.Path];
             if (--counter.Count == 0)
             {
                 counter.Stream.Close();
                 _files.Remove(file.Path);
             }
         }
     }
 }
Esempio n. 3
0
 public FileSync(FileWrapper file)
 {
     _file = file;
 }
Esempio n. 4
0
 public FileSync(FileWrapper file)
 {
     _file = file;
 }