From d20e5bd30819263a7ccbb9059c7eb544fea4771e Mon Sep 17 00:00:00 2001 From: Macocian Alexandru Victor Date: Wed, 18 Aug 2021 16:34:54 +0200 Subject: [PATCH] Fix CV extension (#9) --- .../Logging/CVLoggerProvider.cs | 7 +------ ...SystemExtensions.NetStandard.DependencyInjection.csproj | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/SystemExtensions.NetStandard.DependencyInjection/Logging/CVLoggerProvider.cs b/SystemExtensions.NetStandard.DependencyInjection/Logging/CVLoggerProvider.cs index 5aba840..458e576 100644 --- a/SystemExtensions.NetStandard.DependencyInjection/Logging/CVLoggerProvider.cs +++ b/SystemExtensions.NetStandard.DependencyInjection/Logging/CVLoggerProvider.cs @@ -7,7 +7,7 @@ namespace System.Logging public sealed class CVLoggerProvider : ICVLoggerProvider { private readonly ILogsWriter logsManager; - private CorrelationVector correlationVector; + private readonly CorrelationVector correlationVector; public CVLoggerProvider(ILogsWriter logsWriter) { @@ -28,11 +28,6 @@ namespace System.Logging public ILogger CreateLogger(string categoryName) { - if (this.correlationVector is not null) - { - this.correlationVector = CorrelationVector.Extend(this.correlationVector.ToString()); - } - return new CVLogger(categoryName, this); } diff --git a/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj b/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj index 66cf1cc..6c2cabb 100644 --- a/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj +++ b/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj @@ -6,7 +6,7 @@ LICENSE true latest - 1.1.1 + 1.1.2 Alexandru Macocian https://github.com/AlexMacocian/SystemExtensions