public ICookieGetter[] CreateCookieGetters() { string cookieFolder = Environment.GetFolderPath( Environment.SpecialFolder.Cookies); string lowFolder = Path.Combine(cookieFolder, "low"); if (Directory.Exists(lowFolder)) { IEComponentBrowserManager iec = new IEComponentBrowserManager(); IESafemodeBrowserManager ies = new IESafemodeBrowserManager(); return new ICookieGetter[] { iec.CreateDefaultCookieGetter(), ies.CreateDefaultCookieGetter(), }; } else { return new ICookieGetter[] { CreateDefaultCookieGetter() }; } }
public ICookieGetter[] CreateCookieGetters() { string cookieFolder = Environment.GetFolderPath( Environment.SpecialFolder.Cookies); string lowFolder = Path.Combine(cookieFolder, "low"); if (Directory.Exists(lowFolder)) { IEComponentBrowserManager iec = new IEComponentBrowserManager(); IESafemodeBrowserManager ies = new IESafemodeBrowserManager(); return(new ICookieGetter[] { iec.CreateDefaultCookieGetter(), ies.CreateDefaultCookieGetter(), }); } else { return(new ICookieGetter[] { CreateDefaultCookieGetter() }); } }