예제 #1
0
        public MovieService(
            ITmdbApiService apiService = null,
            ICache cache = null)
        {
            _apiService = apiService ?? Locator.Current.GetService <ITmdbApiService>();
            _cache      = cache ?? Locator.Current.GetService <ICache>();

            _client = _apiService.GetClient();
        }
예제 #2
0
 public TmdbApiController(ILogger <TmdbApiController> logger)
 {
     _logger        = logger;
     _tmdbApiClient = RestService.For <ITmdbApiClient>("https://api.themoviedb.org/3/");
 }