Skip to content

Commit

Permalink
fix di
Browse files Browse the repository at this point in the history
  • Loading branch information
Станислав Терещенков committed Mar 26, 2024
1 parent 6f2a88e commit 364ff23
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public static class ConsulMetricsHttpClientWrapperServiceCollectionExtensions
{
public static IServiceCollection AddConsulMetricsHttpClientWrappers(this IServiceCollection services)
{
// Add IHttpClientFactory for ConsulMetricsHttpClientWrapper<>
services.AddHttpClient();
services.AddSingleton(typeof(ConsulMetricsHttpClientWrapper<>));
return services;
}
Expand Down

0 comments on commit 364ff23

Please sign in to comment.