예제 #1
0
 private async Task <IList <TimeSlot> > getNextTwoSlotsAsync()
 {
     return((from slot in await _campService.ListSessions()
             where slot.EndTime >= DateTime.UtcNow
             orderby slot.StartTime
             select slot).Take(2).ToList());
 }
예제 #2
0
        public async Task Init()
        {
            bool successful = await SafeOperation(
                TaskEx.Run(async() => TimeSlots = await _campService.ListSessions()));

            FinishedLoading(successful);
        }
예제 #3
0
        public async Task Init()
        {
            bool successful = await SafeOperation(
                TaskEx.Run(async() =>
            {
                await _campService.ListSessions();

                reinitializeChildViewModels();
            }));

            FinishedLoading(successful);
        }