/// <summary> /// Event handler for when a AppDomain of the process exits /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">An EventArgs that contains no event data.</param> private void ExitAppDomainEventHandler(object sender, CorAppDomainEventArgs e) { }
/// <summary> /// Event Handler for the creation of the Debugee's appdomains /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">An EventArgs that contains no event data.</param> private void CreateAppDomainEventHandler(object sender, CorAppDomainEventArgs e) { //Console.WriteLine("OnCreateAppDomain"); e.AppDomain.Attach(); e.Continue = true; }
void OnCreateAppDomain (object sender, CorAppDomainEventArgs e) { e.AppDomain.Attach(); e.Continue = true; }
void process_OnCreateAppDomain(object sender, CorAppDomainEventArgs e) { e.AppDomain.Attach(); }
private void OnNewAppDomain(object sender, CorAppDomainEventArgs e) { subscriber.Published(string.Format("Attaching to appDomain [{0}]...", e)); e.AppDomain.Attach(); }
private void ExitAppDomainEventHandler(Object sender, CorAppDomainEventArgs e) { Trace.WriteLine("ManagedCallback::ExitAppDomain"); BeginManagedDebugEvent(); try { if (InternalHandleRawMode(ManagedCallbackType.OnAppDomainExit, e)) return; AppDomains.Unregister(e.AppDomain); if (HandleCustomPostCallback(ManagedCallbackType.OnAppDomainExit, e)) return; } finally { EndManagedDebugEvent(e); } }