Ejemplo n.º 1
0
        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()
                };
            }
        }
Ejemplo n.º 2
0
        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()
                });
            }
        }