public async Task <Stream> GetAsync(string fileName, Stream stream)
        {
            var client  = _clientFactory.GetClient();
            var request = _clientFactory.GetRequestWithParameter(fileName);

            request.ResponseWriter = (responseStream) => responseStream.CopyTo(stream);
            var response = client.DownloadData(request);

            return(stream);
        }
        public async Task <ApplicationVersion> GetAsync()
        {
            try
            {
                var client  = _clientFactory.GetClient();
                var request = _clientFactory.GetRequest();

                return(await _pollyPolicies
                       .RequestTimeoutAsyncRetryPolicy.ExecuteAsync(() =>
                                                                    client.GetAsync <ApplicationVersion>(request)));
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }