Exemplo n.º 1
0
        public static List <RepeatItem <Job> > GetByWebSiteId(this  RepeatTask <Job> jobs, Guid WebSiteId)
        {
            List <RepeatItem <Job> > sitejobs = new List <RepeatItem <Job> >();

            foreach (var item in jobs.GetItems())
            {
                if (item != null && item.Item != null && item.Item.WebSiteId == WebSiteId)
                {
                    sitejobs.Add(item);
                }
            }

            return(sitejobs);
        }
Exemplo n.º 2
0
 public static RepeatTask <Job> RepeatingJob()
 {
     if (_repeating == null)
     {
         lock (_lock)
         {
             if (_repeating == null)
             {
                 _repeating = new IndexedDB.Schedule.RepeatTask <Job>("RepeatTask");
             }
         }
     }
     return(_repeating);
 }