public RestaurantCacheService(IRestaurantService restaurantService)
 {
     this.restaurantCache = new RestaurantCache(restaurantService);
 }
示例#2
0
 public HomeController(ILogger <HomeController> logger, RestaurantCacheService restaurantCacheService)
 {
     this.logger          = logger;
     this.restaurantCache = restaurantCacheService.restaurantCache;
 }