Esempio n. 1
0
 private static void MakeAdbFile(string primesFile, string adbName, string sDbLimit)
 {
     int dbLimit = int.Parse(sDbLimit);
       var p = new PrimesFromFile(primesFile, CreateProgressReporter());
       var adb = AliquotDatabase.Create(p, dbLimit, CreateProgressReporter());
       adb.SaveAs(adbName);
 }
 static void MakeAliquotDb(
   string primesFile,
   string adbLimit,
   string adbFile,
   Progress<ProgressEventArgs> handler,
   CancellationToken cancellationToken)
 {
   IPrimes p = new PrimesFromFile(primesFile, handler, cancellationToken);
   int dbLimit = int.Parse(adbLimit);
   var adb = AliquotDatabase.Create(p, dbLimit, handler, cancellationToken);
   adb.SaveAs(adbFile);
 }