Example #1
0
 public MovieService()
 {
     _httpClient = new HttpClient(new HttpClientDiagnosticsHandler(new HttpClientHandler()))
     {
         BaseAddress = new Uri(Configurations.ApiBaseUrl)
     };
     _movieApi = RestService.For <IMovieAPI>(_httpClient);
 }
Example #2
0
 public MovieDomainService(ICosmosService <Movie> movieCosmosHandler, ICosmosService <ProductionCompany> productionCompanyCosmosHandler,
                           ICosmosService <Genre> genreCosmosHandler, IServiceScopeFactory serviceScopeFactory, IMovieAPI movieAPI)
 {
     _movieCosmosHandler             = movieCosmosHandler;
     _productionCompanyCosmosHandler = productionCompanyCosmosHandler;
     _genreCosmosHandler             = genreCosmosHandler;
     _serviceScopeFactory            = serviceScopeFactory;
     _movieAPI = movieAPI;
 }
 public ApiController(IMovieAPI Movies)
 {
     _Movies = Movies;
 }
Example #4
0
 public MovieAPIAdapterService(IMovieAPI movieAPI)
 {
     _movieAPI = movieAPI;
 }