protected void cli_call_callback(int result, IntPtr transPtr) { this.start_time = this.currentTime; if (NdbTransaction.getCPtr(theTrans).Equals(transPtr)) { this.callback(result); } else { // Something is horrible wrong! The transaction we were passed is not the same as the // transaction we are storing. TODO: How do we deal with this? this.callback(result); } this.end_time = this.currentTime; }
internal AsynchCallbackDelegate registerTransactionHook(NdbTransaction trans) { theTrans = trans; return(theCallback); }