static void RunRabbitMqLoadTest() { try { var stopWatch = new StopWatch(); using (var test = new RabbitMqHandlerLoadTest()) { test.Run(stopWatch); } Console.WriteLine("RabbitMQ Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); } catch (Exception ex) { Console.WriteLine("Unable to run RabbitMQ Load Test: " + ex); Console.WriteLine("If RabbitMQ is not installed, this is normal"); } }
static void RunRabbitMqLoadTest() { try { var stopWatch = new StopWatch(); using (var test = new RabbitMqHandlerLoadTest()) { test.Run(stopWatch); } Console.WriteLine("RabbitMQ Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); } catch (Exception ex) { Console.WriteLine("Unable to run RabbitMQ Load Test: " + ex); Console.WriteLine("If RabbitMQ is not installed, this is normal"); } }