コード例 #1
0
 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;
 }
コード例 #2
0
 internal AsynchCallbackDelegate registerTransactionHook(NdbTransaction trans)
 {
     theTrans = trans;
     return(theCallback);
 }