Example #1
0
        public CefCoreSession(IDispatcher iIUIDispatcher, CefSettings iCefSettings, MVVMCefApp iCefApp, string[] iArgs)
        {
            _Dispatcher = iIUIDispatcher;
            _CefApp = iCefApp;
            _Args = iArgs;
            _CefSettings = iCefSettings;
            var mainArgs = new CefMainArgs(_Args);

            CefRuntime.Load();

            var exitCode = CefRuntime.ExecuteProcess(mainArgs, _CefApp, IntPtr.Zero);
            if (exitCode != -1)
                throw ExceptionHelper.Get(string.Format("Unable to execute cef process: {0}", exitCode));

            CefRuntime.Initialize(mainArgs, _CefSettings, _CefApp, IntPtr.Zero);
        }
 internal MVVMCefRenderProcessHandler(MVVMCefApp iMVVMCefApp, CefLoadHandler iCefLoadHandler)
 {
     _MVVMCefApp = iMVVMCefApp;
     _CefLoadHandler = iCefLoadHandler;
 }