public Eval(Debugger debugger, IAppDomain appDomain, DBG.DnEval eval) { if (appDomain == null) throw new InvalidOperationException("The thread has no owner AppDomain and can't be used to evaluate funcs"); this.debugger = debugger; this.appDomain = appDomain; this.eval = eval; this.eval.SetNoTotalTimeout(); }
public Eval(Debugger debugger, IAppDomain appDomain, DBG.DnEval eval) { if (appDomain == null) { throw new InvalidOperationException("The thread has no owner AppDomain and can't be used to evaluate funcs"); } this.debugger = debugger; this.appDomain = appDomain; this.eval = eval; this.eval.SetNoTotalTimeout(); }
void DnEval_EvalEvent(object sender, EvalEventArgs e, DnEval eval) { if (eval == null || sender != eval) return; if (eval.EvalTimedOut) evalDisabled = true; if (callingEvalComplete) return; callingEvalComplete = true; var app = App.Current.Dispatcher; if (app != null && !app.HasShutdownStarted && !app.HasShutdownFinished) { app.BeginInvoke(DispatcherPriority.Send, new Action(() => { callingEvalComplete = false; if (ProcessState == DebuggerProcessState.Stopped) Debugger.SignalEvalComplete(); })); } }