internal static Task CreateDocumentsAsync(Database database, int n)
 {
     return(database.RunAsync(db =>
     {
         db.BeginTransaction();
         LiteTestCase.CreateDocuments(db, n);
         db.EndTransaction(true);
     }));
 }
 internal static Task CreateDocumentsAsync(Database database, int n)
 {
     return(database.RunAsync(db =>
     {
         database.RunInTransaction(() =>
         {
             LiteTestCase.CreateDocuments(db, n);
             return true;
         });
     }));
 }
Example #3
0
 public bool Run()
 {
     LiteTestCase.CreateDocuments(this._enclosing.database, numDocs);
     countDownLatch.CountDown();
     return(true);
 }
 public void Run(Database database)
 {
     db.BeginTransaction();
     LiteTestCase.CreateDocuments(db, n);
     db.EndTransaction(true);
 }