Example #1
0
 public ManagedCallback GetProcessCallbackInterface(ICorDebugController c)
 {
     if (c.Is <ICorDebugAppDomain>())
     {
         return(GetProcessCallbackInterface(c.CastTo <ICorDebugAppDomain>()));
     }
     else if (c.Is <ICorDebugProcess>())
     {
         return(GetProcessCallbackInterface(c.CastTo <ICorDebugProcess>()));
     }
     else
     {
         throw new System.Exception("Unknown callback argument");
     }
 }
Example #2
0
        public void MDANotification(ICorDebugController c, ICorDebugThread t, ICorDebugMDA mda)
        {
            if (c.Is <ICorDebugAppDomain>())
            {
                EnterCallback(PausedReason.Other, "MDANotification", c.CastTo <ICorDebugAppDomain>());
            }
            else if (c.Is <ICorDebugProcess>())
            {
                EnterCallback(PausedReason.Other, "MDANotification", c.CastTo <ICorDebugProcess>());
            }
            else
            {
                throw new System.Exception("Unknown callback argument");
            }

            ExitCallback_Continue();
        }