Exemplo n.º 1
0
 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;
     if (!dispatcher.HasShutdownStarted && !dispatcher.HasShutdownFinished)
     {
         dispatcher.BeginInvoke(DispatcherPriority.Send, new Action(() => {
             callingEvalComplete = false;
             if (ProcessState == DebuggerProcessState.Paused)
             {
                 Debugger.SignalEvalComplete();
             }
         }));
     }
 }
Exemplo n.º 2
0
 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();
         }));
     }
 }