chromium embedded - CefSharp OffScreen Browser fails when setting a proxy -


i'm trying offscreen browser change proxy while running, error when trying so.

i'm running following code when changing proxy:

        var success = false;         cef.uithreadtaskfactory.startnew(delegate         {             var rc = _webbrowser.getbrowser().gethost().requestcontext;             var dict = new dictionary<string, object>             {                 {"mode", "fixed_servers"},                 {"server", proxyaddress}             };             string error;             success = rc.setpreference("proxy", dict, out error);         }).wait();         if (success == false)             throw new exception("proxy not configured"); 

when run code _webbrowser set instance of cefsharp.offscreen.chromiumwebbrowser success variable set false. if _webbrowser set instance of cefsharp.wpf.chromiumwebbrowser instance, works charm.

what wrong?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -