c# - Setting proxy in middle of application via CefSharp? -


i trying add proxy, need multiple times during application. use below code assign setting @ start.

cefsettings cfsettings = new cefsettings(); cfsettings.cefcommandlineargs.add("proxy-server", proxy.key + ":" + proxy.value); cfsettings.useragent = "my/custom/user-agent-andstuff"; cef.initialize(cfsettings); 

as can see initialize browser, works fine first ever time, if want change proxy in middle of application?

i tried running code again sort of try , "reinitiailize" settings change proxy server received following error when trying so:

system.exception: 'cef can initialized once. use cef.isinitialized guard against exception.' 

using winforms.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -