Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // TestDb();
            TestPerformance.Run();

            Console.WriteLine("Press Enter to continue.");
            Console.ReadLine();
        }
Exemplo n.º 2
0
        public static void Run()
        {
            TestPerformance prog = new TestPerformance();

            // Open a connection and create the performance counters.
            prog.connection.ConnectionString =
                GetIntegratedSecurityConnectionString();
            prog.SetUpPerformanceCounters();
            Console.WriteLine("Available Performance Counters:");

            // Create the connections and display the results.
            prog.CreateConnections();
        }