private static void SignalCallback(object state) { InternalTransaction tx = (InternalTransaction)state; lock (tx) { tx.SignalAsyncCompletion(); } }