Ejemplo n.º 1
0
 private DocumentFile CreateFile(DownloadDetails details, DownloadDetails.RootDirectoryDetails root, bool useExistingFile)
 {
     lock (LockFile)
     {
         return(useExistingFile ? details.FindOrCreateFile(root) : details.CreateNewFile(root));
     }
 }