CefSharpSettings.SubprocessExitIfParentProcessClosed - only spawn task to monitor parent if command line arg present

Follow up to #2375
This commit is contained in:
amaitland
2018-06-09 21:54:12 +10:00
parent cb0d9275e0
commit e4535ab9df
5 changed files with 29 additions and 8 deletions
+12 -7
View File
@@ -181,6 +181,18 @@ namespace CefSharp.Example
settings.FocusedNodeChangedEnabled = true;
//Experimental option where bound async methods are queued on TaskScheduler.Default.
//CefSharpSettings.ConcurrentTaskExecution = true;
//Legacy Binding Behaviour doesn't work for cross-site navigation (navigating to a different domain)
//See issue https://github.com/cefsharp/CefSharp/issues/1203 for details
//CefSharpSettings.LegacyJavascriptBindingEnabled = true;
//Exit the subprocess if the parent process happens to close
//This is optional at the moment
//https://github.com/cefsharp/CefSharp/pull/2375/
CefSharpSettings.SubprocessExitIfParentProcessClosed = true;
//NOTE: Set this before any calls to Cef.Initialize to specify a proxy with username and password
//One set this cannot be changed at runtime. If you need to change the proxy at runtime (dynamically) then
//see https://github.com/cefsharp/CefSharp/wiki/General-Usage#proxy-resolution
@@ -192,13 +204,6 @@ namespace CefSharp.Example
}
Cef.AddCrossOriginWhitelistEntry(BaseUrl, "https", "cefsharp.com", false);
//Experimental option where bound async methods are queued on TaskScheduler.Default.
//CefSharpSettings.ConcurrentTaskExecution = true;
//Legacy Binding Behaviour doesn't work for cross-site navigation (navigating to a different domain)
//See issue https://github.com/cefsharp/CefSharp/issues/1203 for details
//CefSharpSettings.LegacyJavascriptBindingEnabled = true;
}
public static async void RegisterTestResources(IWebBrowser browser)