private HttpClient CreateClientViaJwt(string apiJwtToken) { var client = httpClientFactory.CreateClient(); client.BaseAddress = new Uri(tradeCubeConfiguration.WebApiUrl()); client.DefaultRequestHeaders.Add(ApiConstants.ApiJwtHeader, apiJwtToken); return(client); }
protected HttpClient CreateClient(string apiJwtToken) { var client = clientFactory.CreateClient(); client.BaseAddress = new Uri(tradeCubeConfiguration.WebApiUrl()); client.DefaultRequestHeaders.Add("apiJwtToken", apiJwtToken); return(client); }