internal EnvironmentCreatedEventArgs(int result, ICoreWebView2Environment webViewEnvironment)
 {
     Result = result;
     if (webViewEnvironment != null)
     {
         WebViewEnvironment = new WebView2Environment(webViewEnvironment);
     }
 }
Example #2
0
            public HResult Invoke(HResult result, ICoreWebView2Environment created_environment)
            {
                Environment = created_environment;
                Result      = result;
                Completed   = true;

                return(HResult.S_OK);
            }
        public void Invoke(int result, ICoreWebView2Environment webViewEnvironment)
        {
            EnvironmentCreatedEventArgs eventArgs = new EnvironmentCreatedEventArgs(result, webViewEnvironment);

            Callback.Invoke(eventArgs);
        }
Example #4
0
 internal WebView2Environment(ICoreWebView2Environment environment)
 {
     _environment = (ICoreWebView2Environment)environment;
 }
        public void Invoke([In] ICoreWebView2Environment webViewEnvironment, [In] ICoreWebView2NewBrowserVersionAvailableEventArgs args)
        {
            NewVersionAvailableEventArgs eventArgs = new NewVersionAvailableEventArgs(args);

            Callback.Invoke(eventArgs);
        }