public async Task GetJson() { try { var result = await _httpRequestService.GetJsonAsync(); await _fileService.CreateFile(result); var decrypted = _decryptService.Decrypt(result); var hash = _securityService.CreateHash(decrypted); await _fileService.UpdateFile(decrypted, hash); await _httpRequestService.PostAsync(); } catch (Exception ex) { Console.WriteLine(ex.Message); throw; } Console.ReadKey(); }
public virtual async Task <decimal> GetInterestRate() { var response = await _httpRequestService.GetJsonAsync <InterestRateRespose>(_urlsConfig.InterestRateQueryUrl); return(response.Rate); }