We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66df9b7 commit 668132aCopy full SHA for 668132a
src/Serilog.Extensions.Hosting/Extensions/Hosting/DiagnosticContextCollector.cs
@@ -71,14 +71,7 @@ public void SetException(Exception exception)
71
/// <seealso cref="IDiagnosticContext.Set"/>
72
public bool TryComplete(out IEnumerable<LogEventProperty> properties)
73
{
74
- lock (_propertiesLock)
75
- {
76
- properties = _properties?.Values;
77
- _properties = null;
78
- _exception = null;
79
- Dispose();
80
- return properties != null;
81
- }
+ return TryComplete(out properties, out _);
82
}
83
84
/// <summary>
0 commit comments