public CatsApi()
        {
#if __WASM__
            var innerHandler = new Uno.UI.Wasm.WasmHttpHandler();
#else
            var innerHandler = new HttpClientHandler();
#endif
            _httpClient = new HttpClient(innerHandler)
            {
                BaseAddress = new Uri(API_URL)
            };
            _theCatsApi = RestService.For <ICatsApi>(_httpClient);
        }
Esempio n. 2
0
 public CatsRepository(ICatsApi catsAPI)
 {
     InitializeAutomapper();
     this.catsAPI = catsAPI;
 }