Пример #1
0
        static void Main(string[] args)
        {
            var db = new MongoDB.Driver
                     .MongoClient("mongodb://localhost/?maxPoolSize=1000")
                     .GetDatabase("mongo-async-tests");

            db.DropCollection("journal-sync");
            db.DropCollection("journal-async");
            db.DropCollection("journal-async-await");

            TestSync(db, 1000);
            TestAsync(db, 1000);
            TestAsyncAwait(db, 1000);

            Console.WriteLine("Press any key to exit");
            Console.ReadLine();
        }