diff --git a/CefSharp.Core/Cef.h b/CefSharp.Core/Cef.h index a6d13aa3b..56aa3dd7c 100644 --- a/CefSharp.Core/Cef.h +++ b/CefSharp.Core/Cef.h @@ -165,6 +165,22 @@ namespace CefSharp /// /// CefSharp configuration settings. /// Check that all relevant dependencies avaliable, throws exception if any are missing + /// true if successful; otherwise, false. + static bool Initialize(CefSettingsBase^ cefSettings, bool performDependencyCheck) + { + auto cefApp = gcnew DefaultApp(nullptr, cefSettings->CefCustomSchemes); + + return Initialize(cefSettings, performDependencyCheck, cefApp); + } + + /// + /// Initializes CefSharp with user-provided settings. + /// It's important to note that Initialize/Shutdown MUST be called on your main + /// applicaiton thread (Typically the UI thead). If you call them on different + /// threads, your application will hang. See the documentation for Cef.Shutdown() for more details. + /// + /// CefSharp configuration settings. + /// Check that all relevant dependencies avaliable, throws exception if any are missing /// The handler for functionality specific to the browser process. Null if you don't wish to handle these events /// true if successful; otherwise, false. static bool Initialize(CefSettingsBase^ cefSettings, bool performDependencyCheck, IBrowserProcessHandler^ browserProcessHandler)