winform中有多个cefglue,我希望每个cefglue都有一个单独的缓存。
在cefsharp中:
var browser = new ChromiumWebBrowser(url);
browser.RequestContext = new RequestContext(new RequestContextSettings()
{
CachePath =System.IO.Directory.GetCurrentDirectory() + @"\Cache\Cache"+DateTime.Now.ToLongTimeString()
});我想知道如何使用头孢胶。
发布于 2017-01-24 15:37:10
您应该使用自己的请求上下文创建每个浏览器(通过在CreateBrowser方法中提供CefRequestContext )。
https://stackoverflow.com/questions/41647270
复制相似问题