WinForms/WPF/OffScreenRemove CefSharpSettings.SubprocessExitIfParentProcessClosed = true; as it's now the default

This commit is contained in:
amaitland
2019-12-14 11:51:27 +10:00
parent ac87ce9b5a
commit 282d2c0bd3
3 changed files with 3 additions and 15 deletions
+1 -5
View File
@@ -9,16 +9,12 @@ 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
CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Cache")
};
//Example of setting a command line argument
//Enables WebRTC
settings.CefCommandLineArgs.Add("enable-media-stream", "1");