public object Get(UpcomingMeetings request)
        {
            var cacheKey = "upcoming_meetings";
            var cacheTime = new TimeSpan(0, 4, 0, 0); //cache for four hours

            return RequestContext.ToOptimizedResultUsingCache(Cache, cacheKey, cacheTime, UpcomingMeetings);
        }
Exemple #2
0
 /// <summary>
 /// Set/update the upcoming meetings
 /// </summary>
 /// <param name="meetings">List of the upcoming meeting</param>
 /// <returns></returns>
 private void SetUpcomingMeetings(IEnumerable <IMeetingRefExtended> meetings)
 {
     UpcomingMeetings.MakeListLookLike(meetings,
                                       (oItem, dItem) => oItem.Meeting.AsReferenceString() == dItem.Meeting.AsReferenceString(),
                                       dItem => dItem
                                       );
 }