void DoProcessEvalFinished(CorEvalEventArgs evalArgs, bool isException) { if (evalArgs.Eval != eval) { return; } context.Session.OnEndEvaluating(); evalArgs.Continue = false; if (Token.IsCancellationRequested) { DebuggerLoggingService.LogMessage("EvalFinished() but evaluation was cancelled"); tcs.TrySetCanceled(); } else { DebuggerLoggingService.LogMessage("EvalFinished(). Setting the result"); tcs.TrySetResult(new OperationResult <CorValue> (evalArgs.Eval.Result, isException)); } }
void OnEvalComplete(object sender, CorEvalEventArgs e) { evaluationTimestamp++; }
void OnEvalException(object sender, CorEvalEventArgs e) { evaluationTimestamp++; }
void ProcessOnEvalException(object sender, CorEvalEventArgs evalArgs) { DoProcessEvalFinished(evalArgs, true); }
void ProcessOnEvalComplete(object sender, CorEvalEventArgs evalArgs) { DoProcessEvalFinished(evalArgs, false); }