public InternalClient(IAuthenticatedHttpClientFactory authenticatedHttpClientFactory, IDelegatedHttpClientFactory delegatedHttpClientFactory) { var baseAddress = new Uri(Constants.Endpoints.VoidwellBlog); _httpClient = authenticatedHttpClientFactory.GetHttpClient(); _httpClient.BaseAddress = baseAddress; _delegatedHttpClient = delegatedHttpClientFactory.GetHttpClient("voidwell-internal"); _delegatedHttpClient.BaseAddress = baseAddress; }
public UserManagementClient(IAuthenticatedHttpClientFactory authenticatedHttpClientFactory, IDelegatedHttpClientFactory delegatedHttpClientFactory) { var baseAddress = new Uri("http://voidwellusermanagement:5000"); _httpClient = authenticatedHttpClientFactory.GetHttpClient(); _httpClient.BaseAddress = baseAddress; _delegatedHttpClient = delegatedHttpClientFactory.GetHttpClient("voidwell-usermanagement"); _delegatedHttpClient.BaseAddress = baseAddress; }
public DaybreakGamesClient(IAuthenticatedHttpClientFactory authenticatedHttpClientFactory) { _httpClient = authenticatedHttpClientFactory.GetHttpClient(); _httpClient.Timeout = TimeSpan.FromSeconds(30); _httpClient.BaseAddress = new Uri(Constants.Endpoints.DaybreakGames); }
public VoidwellClient(IAuthenticatedHttpClientFactory authenticatedHttpClientFactory) { _httpClient = authenticatedHttpClientFactory.GetHttpClient(); _httpClient.Timeout = TimeSpan.FromSeconds(60); _httpClient.BaseAddress = new Uri(Constants.Endpoints.VoidwellApi); }