/// <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(); }
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; }