Пример #1
0
 public CosmosFailoverTestCommand()
 {
     Console.ForegroundColor = _defaultColor;
     _threadBarrier          = new Barrier(2, (barrier) =>
     {
         DeleteDatabaseCollectionAsync(CommandDatabaseCollectionName);
         ConsoleWrite(ConsoleColor.Red, "End of thread barrier or default timeout. Cleaned up resources.");
         _testRunStatistics.StopCollection();
         _testRunStatistics.OutputReport();
         Environment.Exit(0);
     });
 }