Exemplo n.º 1
0
        public static CDNIndexHandler Initialize(CASCConfig config)
        {
            CDNIndexHandler handler = new CDNIndexHandler(config);

            for (int i = 0; i < config.Archives.Count; i++)
            {
                string archive = config.Archives[i];

                if (Program.Settings.UseRemote)
                    handler.DownloadIndexFile(archive, i);
                else
                    handler.OpenIndexFile(archive, i);
            }

            return handler;
        }
Exemplo n.º 2
0
        public static CDNIndexHandler Initialize(CASCConfig config)
        {
            CDNIndexHandler handler = new CDNIndexHandler(config);

            for (int i = 0; i < config.Archives.Count; i++)
            {
                string archive = config.Archives[i];

                if (Program.Settings.UseRemote)
                {
                    handler.DownloadIndexFile(archive, i);
                }
                else
                {
                    handler.OpenIndexFile(archive, i);
                }
            }

            return(handler);
        }