Пример #1
0
        public bool EndSaveRestaurant(IAsyncResult r)
        {
            CompletedAsyncResult <bool> result = r as CompletedAsyncResult <bool>;

            return(result.Data);
        }
Пример #2
0
        public RestaurantInfo EndGetRestaurantByName(IAsyncResult r)
        {
            CompletedAsyncResult <RestaurantInfo> result = r as CompletedAsyncResult <RestaurantInfo>;

            return(result.Data);
        }
Пример #3
0
        public IEnumerable <RestaurantInfo> EndGetRestaurantsByRating(IAsyncResult r)
        {
            CompletedAsyncResult <IEnumerable <RestaurantInfo> > result = r as CompletedAsyncResult <IEnumerable <RestaurantInfo> >;

            return(result.Data);
        }
Пример #4
0
        public IEnumerable <string> EndGetRestaurantNames(IAsyncResult r)
        {
            CompletedAsyncResult <IEnumerable <string> > result = r as CompletedAsyncResult <IEnumerable <string> >;

            return(result.Data);
        }