Skip to content

Commit

Permalink
Fix #2942 - Add LoraWan service dependency before adding the http cli…
Browse files Browse the repository at this point in the history
…ent. (#2943)
  • Loading branch information
kbeaugrand committed Apr 16, 2024
1 parent 15196ec commit f50c12a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ private static IServiceCollection AddLoRaWanSupport(this IServiceCollection serv
return services;
}

_ = services.AddTransient<ILoRaWanManagementService, LoRaWanManagementService>();

var transientHttpErrorPolicy = HttpPolicyExtensions
.HandleTransientHttpError()
.OrResult(c => c.StatusCode == HttpStatusCode.NotFound)
Expand Down Expand Up @@ -179,7 +181,7 @@ private static IServiceCollection ConfigureMappers(this IServiceCollection servi

private static IServiceCollection ConfigureServices(this IServiceCollection services)
{
return services.AddTransient<ILoRaWanManagementService, LoRaWanManagementService>();
return services;
}

private static IServiceCollection ConfigureHealthCheck(this IServiceCollection services)
Expand Down

0 comments on commit f50c12a

Please sign in to comment.