Demo CefSharpSettings.SubprocessExitIfParentProcessClosed
Set CefSharpSettings.SubprocessExitIfParentProcessClosed = true; to demo this feature.
This commit is contained in:
		@@ -23,6 +23,10 @@ namespace CefSharp.MinimalExample.OffScreen
 | 
			
		||||
            Console.WriteLine("You may see Chromium debugging output, please wait...");
 | 
			
		||||
            Console.WriteLine();
 | 
			
		||||
 | 
			
		||||
            //Monitor parent process exit and close subprocesses if parent process exits first
 | 
			
		||||
            //This will at some point in the future becomes the default
 | 
			
		||||
            CefSharpSettings.SubprocessExitIfParentProcessClosed = true;
 | 
			
		||||
 | 
			
		||||
            var settings = new CefSettings()
 | 
			
		||||
            {
 | 
			
		||||
                //By default CefSharp will use an in-memory cache, you need to specify a Cache Folder to persist data
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,10 @@ namespace CefSharp.MinimalExample.WinForms
 | 
			
		||||
        [STAThread]
 | 
			
		||||
        public static void Main()
 | 
			
		||||
        {
 | 
			
		||||
            //Monitor parent process exit and close subprocesses if parent process exits first
 | 
			
		||||
            //This will at some point in the future becomes the default
 | 
			
		||||
            CefSharpSettings.SubprocessExitIfParentProcessClosed = true;
 | 
			
		||||
 | 
			
		||||
            //For Windows 7 and above, best to include relevant app.manifest entries as well
 | 
			
		||||
            Cef.EnableHighDPISupport();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,10 @@ namespace CefSharp.MinimalExample.Wpf
 | 
			
		||||
    {
 | 
			
		||||
        public App()
 | 
			
		||||
        {
 | 
			
		||||
            //Monitor parent process exit and close subprocesses if parent process exits first
 | 
			
		||||
            //This will at some point in the future becomes the default
 | 
			
		||||
            CefSharpSettings.SubprocessExitIfParentProcessClosed = true;
 | 
			
		||||
 | 
			
		||||
            var settings = new CefSettings()
 | 
			
		||||
            {
 | 
			
		||||
                //By default CefSharp will use an in-memory cache, you need to specify a Cache Folder to persist data
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user