diff --git a/ATI.Services.Consul/ConsulMetricsHttpClientWrapperServiceCollectionExtensions.cs b/ATI.Services.Consul/ConsulMetricsHttpClientWrapperServiceCollectionExtensions.cs index fb2bd61..3449f1a 100644 --- a/ATI.Services.Consul/ConsulMetricsHttpClientWrapperServiceCollectionExtensions.cs +++ b/ATI.Services.Consul/ConsulMetricsHttpClientWrapperServiceCollectionExtensions.cs @@ -13,6 +13,7 @@ public static IServiceCollection AddConsulMetricsHttpClientWrappers(this IServic // Add IHttpClientFactory for ConsulMetricsHttpClientWrapper<> services.AddHttpClient(); services.AddSingleton(typeof(ConsulMetricsHttpClientWrapper<>)); + services.AddHttpContextAccessor(); return services; } } \ No newline at end of file