CEF Initialization Settings
- Code: Select all
var settings = new CefSettings()
{
CachePath = CachePath,
LogFile = CachePath,
LogSeverity = LogSeverity.Disable,
AcceptLanguageList = "en-US",
IgnoreCertificateErrors = true,
PersistSessionCookies = true,
UserAgent = userAgent ?? "Mozilla/5.0 (Linux; Android 7.1.1; ASUS_X00ID Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36"
};
Browser Settings on Opening
- Code: Select all
public BookmakerAuthWindow(string reference, string bookmaker, bool isAuth)
{
InitializeComponent();
var requestContextSettings = new RequestContextSettings { CachePath = CefSharpHelper.CachePath + @"\Browser" };
browser.RequestContext = new RequestContext(requestContextSettings);
browser.JavascriptObjectRepository.Register("CallbackService", new CallbackService(), true);
InitializationComponents(reference, bookmaker, isAuth);
}
With these settings, they use the same cache but the proxies are the same for everyone. I need the cache to be one for all and different proxies.
I am using WPF.