Example #1
0
        public Task <List <Fortune> > RandomFortunes()
        {
            // Get a random fortune using FortuneServiceCollapser
            var myFortune = GetMyFortune();

            // Ask another service for some Fortunes
            var s2Fortunes = _service2.RandomFortunes();

            // Return a task that will combine the results into a List of Fortunes
            return(CombineWith(myFortune, s2Fortunes));
        }