Esempio n. 1
0
 public IEnumerable <ScheduleItem> GetScheduleItemsByTimeSlot(Event evnt, DateRangeAddress dateRangeAddress)
 {
     return
         (cache.GetItems <IEnumerable <ScheduleItem>, ScheduleItem>(
              string.Format("GetScheduleItems-Event:{0},Start:{1},End:{2}", evnt.Name, dateRangeAddress.StartDate.ToStringForFeed(), dateRangeAddress.EndDate.ToStringForFeed()),
              () => repository.GetScheduleItemsByTimeSlot(evnt, dateRangeAddress).FillTags(tagService),
              si => si.GetDependencies()
              ));
 }
        public IEnumerable <ScheduleItem> GetScheduleItemsByTimeSlot(EventAddress eventAddress, DateRangeAddress dateRangeAddress)
        {
            var result =
                cache.GetItems <IEnumerable <ScheduleItem>, ScheduleItem>(
                    string.Format("GetScheduleItems-Event:{0},Start:{1},End:{2}", eventAddress.EventName, dateRangeAddress.StartDate.ToStringForFeed(), dateRangeAddress.EndDate.ToStringForFeed()),
                    () => repository.GetScheduleItemsByTimeSlot(eventAddress, dateRangeAddress).FillTags(tagService).ToList(),
                    si => si.GetDependencies()
                    );

            SetScheduleItemUsers(result);

            return(result);
        }