public static void TestExecuteReaderTwice(string connectionString, string commandText)
 {
     ManualResetEvent mre = new ManualResetEvent(false);
     var executor = new AsyncExecuteReaderInParallel(connectionString, commandText, mre);
     executor.BeginExecute();
     mre.WaitOne(1000);
 }
Beispiel #2
0
        public static void TestExecuteReaderTwice(string connectionString, string commandText)
        {
            ManualResetEvent mre = new ManualResetEvent(false);
            var executor         = new AsyncExecuteReaderInParallel(connectionString, commandText, mre);

            executor.BeginExecute();
            mre.WaitOne(1000);
        }