Exemple #1
0
        public PhotoTest()
        {
            var httpClient = new HttpClient {
                BaseAddress = new Uri("https://jsonplaceholder.typicode.com")
            };

            _instance = new PhotoClient(httpClient);
        }
        public async Task <PhotoClient> CreatePhotoClient()
        {
            var httpClient = await ConstructHttpClient();

            var photoClient = new PhotoClient(httpClient)
            {
                BaseUrl = _appOptions.ImageRecognitionApiUrl
            };

            return(photoClient);
        }