예제 #1
0
파일: Eval.cs 프로젝트: GreenDamTan/dnSpy
		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();
		}
예제 #2
0
파일: Eval.cs 프로젝트: dotfornet/dnSPy
 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();
 }
예제 #3
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();
         }));
     }
 }