/// <summary> /// as per https://josef.codes/you-are-probably-still-using-httpclient-wrong-and-it-is-destabilizing-your-software/ /// and https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests /// </summary> /// <param name="httpClient"></param> public GoDaddyClient(GodaddyOptions options) { _httpClient.BaseAddress = new Uri(options.LiveEndPoint); _httpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue(options.Key, options.Secret); }
public GodaddyProvider(GodaddyOptions options) { _godaddyClient = new GoDaddyClient(options); }