Пример #1
0
        public async Task <IEnumerable <Speaker> > GetAllSpeakersWithSessions()
        {
            var fetchSpeakers = _httpHelper.FetchSpeakers();
            var fetchSessions = _httpHelper.FetchSessions();
            await Task.WhenAll(fetchSpeakers, fetchSessions);

            return(fetchSpeakers.Result.CombineWith(fetchSessions.Result));
        }