我正在開發一個CefSharp應用程序, Downloaded from this link。我想手動設置代理。我申請了AutoDetectProxySettings = true
,但我不確定它是否正常工作。在示例中如何在CefSharp中手動設置代理
bool IRequestHandler.GetAuthCredentials(IWebBrowser browser, bool isProxy, string host, int port, string realm, string scheme, ref string username, ref string password)
{
return false;
}
我在那裏標記了一個斷點,但它沒有調用它。
試試這個:CefSharp.CefSettings設置=新CefSharp。 CefSettings(); (「proxy-auto-detect」,「1」); CefSharp.Cef.Initialize(settings); – null1941
試試這個,自動檢測代理設置:CefSharp.CefSettings settings = new CefSharp.CefSettings(); settings.CefCommandLineArgs.Add(「proxy-auto-detect」,「1」); CefSharp.Cef.Initialize(settings); – null1941