public bool Resume(int handle) { lock (mThreadContexts.SyncRoot) { IRecordContext ctx = (IRecordContext)mThreadContexts["ThreadContext_" + handle]; if (ctx != null) { return(ctx.Resume()); } } return(false); }