//private IDispatcher _Dispatcher; public CefCoreSession(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); }
//private IDispatcher _Dispatcher; public CefCoreSession(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; }