private void ExitAppDomainEventHandler(Object sender, CorAppDomainEventArgs e)
        {
            OriginalMDbgMessages.WriteLine("ManagedCallback::ExitAppDomain");
            if (InternalHandleRawMode(ManagedCallbackType.OnAppDomainExit, e))
                return;

            AppDomains.Unregister(e.AppDomain);

            if (HandleCustomPostCallback(ManagedCallbackType.OnAppDomainExit, e))
                return;
        }
        private void CreateAppDomainEventHandler(Object sender, CorAppDomainEventArgs e)
        {
            OriginalMDbgMessages.WriteLine("ManagedCallback::CreateAppDomain");
            if (InternalHandleRawMode(ManagedCallbackType.OnCreateAppDomain, e))
                return;

            e.AppDomain.Attach();
            AppDomains.Register(e.AppDomain);

            if (HandleCustomPostCallback(ManagedCallbackType.OnCreateAppDomain, e))
                return;
        }