Inheritance: CorProcessEventArgs
Example #1
0
 /// <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)
 {
 }
Example #2
0
 /// <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;
		}
Example #4
0
 void process_OnCreateAppDomain(object sender, CorAppDomainEventArgs e)
 {
     e.AppDomain.Attach();
 }
Example #5
0
 private void OnNewAppDomain(object sender, CorAppDomainEventArgs e)
 {
     subscriber.Published(string.Format("Attaching to appDomain [{0}]...", e));
     e.AppDomain.Attach();
 }
Example #6
0
        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);
            }
        }