public NotificationRepository(HttpClient httpClient, IOptions <APIUrls> apiUrls, ILogger <NotificationRepository> logger) { _httpClient = httpClient; _apiUrls = apiUrls.Value; URLConfig.Promotion.BaseURI = _apiUrls.PromotionAPI_Base; _logger = logger; }
public RecommendationService(HttpClient serviceClient, IOptions <APIUrls> apiUrls) { _apiClient = serviceClient; _apiUrls = apiUrls.Value; URLConfig.Recommendation.BaseURI = _apiUrls.RecommendationAPI_Base; URLConfig.Claim.BaseURI = _apiUrls.ClaimAPI_Base; }
public ClaimRepository(MyDBContext context, HttpClient httpClient, IOptions <APIUrls> apiUrls, ILogger <ClaimRepository> logger) { _context = context; _httpClient = httpClient; _apiUrls = apiUrls.Value; URLConfig.Login.BaseURI = _apiUrls.LoginAPI_Base; URLConfig.Promotion.BaseURI = _apiUrls.PromotionAPI_Base; _logger = logger; }
public ClaimService(HttpClient httpClient, IOptions <APIUrls> apiUrls, ILogger <ClaimService> logger) { _httpClient = httpClient; _apiUrls = apiUrls.Value; _logger = logger; URLConfig.Claim.BaseURI = _apiUrls.ClaimAPI_Base; URLConfig.Promotion.BaseURI = _apiUrls.PromotionAPI_Base; URLConfig.ShopProfile.BaseURI = _apiUrls.ShopProfileAPI_Base; }
public ApiService( ILogger <ApiService> logger, IServiceScopeFactory scopeFactory, IOptions <APIUrls> urls) { _logger = logger; _scopeFactory = scopeFactory; _aQ = new AQICN(); _urls = urls.Value; }
// convert UAH to Bitcoin by todays exchange rate public decimal ConvertUAHToBitcoin(decimal moneyInUAH) { var rate = Task.Run(() => _bitcoinConverter.GetAsync <BitcoinToUAHRateResponse>(APIUrls.GetBitcoinToUAHRateAPI())).GetAwaiter().GetResult(); return(moneyInUAH / Convert.ToDecimal(rate.data.rate)); }
public NotificationService(HttpClient httpClient, IOptions <APIUrls> apiUrls) { _httpClient = httpClient; _apiUrls = apiUrls.Value; URLConfig.Notification.BaseURI = _apiUrls.NotificationAPI_Base; }
public static async Task <List <CovidTimeStep> > GetCountryDailyDataByStatus(string country, string status) { return(await GetCountryDailyDataByStatus(APIUrls.GetCountryDailyCases().Replace("*", country).Replace("#", status))); }
public FeedbackService(HttpClient serviceClient, IOptions <APIUrls> apiUrls) { _apiClient = serviceClient; _apiUrls = apiUrls.Value; URLConfig.Feedback.BaseURI = _apiUrls.FeedbackAPI_Base; }
public CustomerProfileService(HttpClient serviceClient, IOptions <APIUrls> apiUrls) { _apiClient = serviceClient; _apiUrls = apiUrls.Value; URLConfig.CustomerProfile.BaseURI = _apiUrls.CustomerProfileAPI_Base; }
public LoginService(HttpClient httpClient, IOptions <APIUrls> apiUrls, IShopProfileService shopProfileService) { _httpClient = httpClient; _apiUrls = apiUrls.Value; URLConfig.Login.BaseURI = _apiUrls.LoginAPI_Base; }
public ShopProfileService(HttpClient httpClient, IOptions <APIUrls> apiUrls) { _httpClient = httpClient; _apiUrls = apiUrls.Value; URLConfig.ShopProfile.BaseURI = _apiUrls.ShopProfileAPI_Base; }