public void Run() { try { _cancelable?.AddCancelMethod(this, () => _isCanceled = true); DoRun(); if (IsFull) { _dmp.Comment(" ******************************* SQL is truncated ******************************* "); } } finally { _cancelable?.RemoveCancelMethod(this); } }