Ejemplo n.º 1
0
        public FileServiceAPI(IConfiguration config, HttpClient httpClient)
        {
            string apiHostAndPort = config.GetSection("APIServiceLocations").GetValue <string>("FileServiceAPI");

            httpClient.BaseAddress = new Uri($"http://{apiHostAndPort}/api");
            _restClient            = RestService.For <IFileServiceAPI>(httpClient);
        }
Ejemplo n.º 2
0
 public ProfileController(AppIdentityDbContext context, IFileServiceAPI fileServiceAPI)
 {
     _context        = context;
     _fileServiceAPI = fileServiceAPI;
 }