From e1959721b92ed19477cf659fa1cdc511e87d7e90 Mon Sep 17 00:00:00 2001 From: stijnmoreels <9039753+stijnmoreels@users.noreply.github.com> Date: Tue, 24 Mar 2020 11:39:05 +0100 Subject: [PATCH] =?UTF-8?q?Feature=20-=20use=20scoped=20correlation=20acce?= =?UTF-8?q?ssors=20for=20each=20unique=20reques=E2=80=A6=20(#49)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IServiceCollectionExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Arcus.Observability.Correlation/IServiceCollectionExtensions.cs b/src/Arcus.Observability.Correlation/IServiceCollectionExtensions.cs index b2016e29..df7d0aaa 100644 --- a/src/Arcus.Observability.Correlation/IServiceCollectionExtensions.cs +++ b/src/Arcus.Observability.Correlation/IServiceCollectionExtensions.cs @@ -140,8 +140,8 @@ public static IServiceCollection AddCorrelation>(createCustomCorrelationAccessor); - services.AddSingleton(serviceProvider => + services.AddScoped>(createCustomCorrelationAccessor); + services.AddScoped(serviceProvider => { return new CorrelationInfoAccessorProxy( serviceProvider.GetRequiredService>());