Skip to content

Commit

Permalink
review upd: add Accessor to services
Browse files Browse the repository at this point in the history
  • Loading branch information
kochengin.a committed Jul 8, 2024
1 parent 30cd5f5 commit eefef72
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public static IServiceCollection AddConsulMetricsHttpClientWrappers(this IServic
// Add IHttpClientFactory for ConsulMetricsHttpClientWrapper<>
services.AddHttpClient();
services.AddSingleton(typeof(ConsulMetricsHttpClientWrapper<>));
services.AddHttpContextAccessor();
return services;
}
}

0 comments on commit eefef72

Please sign in to comment.