Inheritance: CorThreadEventArgs
コード例 #1
0
		void OnEvalComplete (object sender, CorEvalEventArgs e)
		{
			evaluationTimestamp++;
		}
コード例 #2
0
ファイル: Process.cs プロジェクト: EbinJohn/BigBrother
 /// <summary>
 /// Creates a new instance of the CustomEvalEventArgs class.
 /// </summary>
 /// <param name="processController">Which IMDbgProcessController to store in the Object.</param>
 /// <param name="callbackArgs">Which CorEvalEventArgs to encapsulate in this wrapper.</param>
 /// <param name="callbackType">What Callback type this was.</param>
 public CustomEvalEventArgs(IMDbgProcessController processController,
                     CorEvalEventArgs callbackArgs,
                     EvalCallbackType callbackType)
     : base(processController)
 {
     this.callbackArgs = callbackArgs;
     this.callbackType = callbackType;
 }
コード例 #3
0
		void OnEvalException (object sender, CorEvalEventArgs e)
		{
			evaluationTimestamp++;
		}
コード例 #4
0
ファイル: Process.cs プロジェクト: EbinJohn/BigBrother
        private void EvalExceptionEventHandler(Object sender, CorEvalEventArgs e)
        {
            Trace.WriteLine("ManagedCallback::EvalException");
            BeginManagedDebugEvent();
            try
            {
                if (InternalHandleRawMode(ManagedCallbackType.OnEvalException, e))
                    return;

                // custom eval handling
                if (customEvals != null
                    && customEvals.Contains(e.Eval))
                {
                    using (MDbgProcessStopController psc = new MDbgProcessStopController(this, e, false))
                    {
                        CustomEvalEventHandler handler = (customEvals[e.Eval] as CustomEvalEventHandler);
                        customEvals.Remove(e.Eval);
                        handler(this, new CustomEvalEventArgs(psc, e, CustomEvalEventArgs.EvalCallbackType.EvalException));
                    }
                    return;         // this was custom eval, no additional action necessary.
                }

                e.Continue = false;
                InternalSignalRuntimeIsStopped(e.Thread, new EvalExceptionStopReason(e.Eval));
            }
            finally
            {
                EndManagedDebugEvent(e);
            }
        }