Пример #1
0
        /// <summary>
        /// Start downloading in new thread
        /// </summary>
        /// <param name="chan">Channel name</param>
        public void start(string ChanName, epgResult er)
        {
            result = er;
            ThreadStart starter = delegate { getEpg(ChanName, ""); };
            Thread      th      = new Thread(starter);

            th.IsBackground = true;
            th.Start();
        }
Пример #2
0
        public Epg(string _CachePath)
        {
            selectedPlugin = new SiolPlugin.EpgPlugin();
            result         = new epgResult("", "", "");
            if (_CachePath != "")
            {
                CachePath = _CachePath;
            }
            //            Finished = OnFinished;
            if (AssemblyVersion.CompareTo(selectedPlugin.MulticasttvVersion) >= 0)
            {
                VersionOk = true;
            }

            policy     = new HttpRequestCachePolicy(HttpRequestCacheLevel.Default);
            CookieCont = new CookieContainer();
            HttpWebRequest.DefaultCachePolicy = policy;
        }