public string EndTransaction(IAsyncResult ar) { AsyncResult ra = (AsyncResult)ar; AsyncTransactionDel tdel = (AsyncTransactionDel)ra.AsyncDelegate; string s = tdel.EndInvoke(ar); return(s); }
public void BeginTransaction(string cname, string queryStr, AsyncCallback ac, ACSControllerUtilities _acsu) { ACSControllerUtilities acsu = new ACSControllerUtilities(_acsu); AsyncTransactionDel tdel = new AsyncTransactionDel(Transaction); IAsyncResult result = tdel.BeginInvoke(cname, queryStr, new AsyncCallback(ac), new object[] { cname, acsu }); }