File tree 3 files changed +4
-2
lines changed
src/Serilog.Enrichers.Thread 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public class ThreadIdEnricher : ILogEventEnricher
31
31
/// <summary>
32
32
/// The cached last created "ThreadId" property with some thread id. It is likely to be reused frequently so avoiding heap allocations.
33
33
/// </summary>
34
- private LogEventProperty _lastValue ;
34
+ private LogEventProperty ? _lastValue ;
35
35
36
36
/// <summary>
37
37
/// Enrich the log event.
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public class ThreadNameEnricher : ILogEventEnricher
32
32
/// <summary>
33
33
/// The cached last created "ThreadName" property with some thread name. It is likely to be reused frequently so avoiding heap allocations.
34
34
/// </summary>
35
- private LogEventProperty _lastValue ;
35
+ private LogEventProperty ? _lastValue ;
36
36
37
37
/// <summary>
38
38
/// Enrich the log event.
Original file line number Diff line number Diff line change 17
17
<PackageProjectUrl >http://serilog.net</PackageProjectUrl >
18
18
<PackageLicenseExpression >Apache-2.0</PackageLicenseExpression >
19
19
<GenerateAssemblyVersionAttribute >false</GenerateAssemblyVersionAttribute >
20
+ <LangVersion >latest</LangVersion >
21
+ <Nullable >enable</Nullable >
20
22
</PropertyGroup >
21
23
22
24
<ItemGroup >
You can’t perform that action at this time.
0 commit comments