Example #1
0
 public CryptocurrencyController(IExchangeLogic exchangeLogic)
 {
     _exchangeLogic = exchangeLogic;
     apiUrl = "https://www.worldcoinindex.com/apiservice/json?key=" +
              ConfigurationManager.AppSettings["WorldCoinIndexApiKey"];
     client = new HttpClient { BaseAddress = new Uri(apiUrl) };
     client.DefaultRequestHeaders.Accept.Clear();
     client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
 }
Example #2
0
 public ExchangeController(IExchangeLogic _logic)
 {
     logic = _logic;
 }