public static void BeginExecuteXmlReader(string connectionString, string commandText) { ManualResetEvent mre = new ManualResetEvent(false); var executor = new AsyncExecuteXmlReaderWrapper(connectionString, commandText, mre); executor.BeginExecute(); mre.WaitOne(1000); }
public static void BeginExecuteXmlReader(string connectionString, string commandText) { ManualResetEvent mre = new ManualResetEvent(false); var executor = new AsyncExecuteXmlReaderWrapper(connectionString, commandText, mre); executor.BeginExecute(); mre.WaitOne(1000); }