Beispiel #1
0
        static public void LoadErrorSiteTimer()
        {
            if (ErrorSiteTimers.Count == 0)
            {
                ErrorSiteTimers.Clear();
                List <SiteErr> siteErrlist = BLL.SiteErr.Instance.GetList();

                foreach (SiteErr site in siteErrlist)
                {
                    WatchLinkTimer st = new WatchLinkTimer(site.TestUrl, site.TimeSpan, TimeSpanUnit.Minute, site.Id.ToString());
                    st.Start();
                    ErrorSiteTimers.Add(site.TestUrl, st);
                }
            }
        }
Beispiel #2
0
        static public void LoadFriendTimer()
        {
            if (FriendTimers.Count == 0)
            {
                FriendTimers.Clear();
                List <FriendLink> siteErrlist = BLL.FriendLink.Instance.GetList();

                foreach (FriendLink site in siteErrlist)
                {
                    WatchLinkTimer st = new WatchLinkTimer(site.PUrl, site.TimeSpan, TimeSpanUnit.Hour, site.Id.ToString());
                    st.Start();
                    FriendTimers.Add(site.PUrl, st);
                }
            }
        }
Beispiel #3
0
        static public void LoadUpdateLinkTimer()
        {
            if (UpdateLinkTimers.Count == 0)
            {
                UpdateLinkTimers.Clear();
                List <Entity.UpdateLink> lst = BLL.UpdateLink.Instance.GetList();

                foreach (UpdateLink link in lst)
                {
                    WatchLinkTimer md = new WatchLinkTimer(link.PUrl, link.TimeSpan, TimeSpanUnit.Hour, link.Id.ToString());
                    md.Start();
                    UpdateLinkTimers.Add(link.PUrl, md);
                }
            }
        }