Skip to content

Commit

Permalink
update parameter naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jpill committed Jun 11, 2024
1 parent 9c6b2a7 commit e80610f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ShipEngine/ShipEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ namespace ShipEngineSDK
{
public static class ShipEngineExtensions
{
public static IHostApplicationBuilder AddShipEngine(this IHostApplicationBuilder builder, Action<HttpClient>? clientOverride = null)
public static IHostApplicationBuilder AddShipEngine(this IHostApplicationBuilder builder, Action<HttpClient>? configureClient = null)
{
builder.Services.AddHttpClient<ShipEngine>(c =>
{
var baseUri = builder.Configuration["ShipEngine:BaseUrl"] ?? "https://api.shipengine.com";
var apiKey = builder.Configuration["ShipEngine:ApiKey"];
ShipEngineClient.ConfigureHttpClient(c, apiKey, new Uri(baseUri));
clientOverride?.Invoke(c);
configureClient?.Invoke(c);
});

return builder;
Expand Down

0 comments on commit e80610f

Please sign in to comment.