You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,21 +82,15 @@ public bool TryComplete(out IEnumerable<LogEventProperty> properties)
81
82
}
82
83
83
84
/// <summary>
84
-
/// Complete the context and retrieve the properties added to it, if any. This will
85
+
/// Complete the context and retrieve the properties and exception added to it, if any. This will
85
86
/// stop collection and remove the collector from the original execution context and
86
87
/// any of its children.
87
88
/// </summary>
88
89
/// <param name="properties">The collected properties, or null if no collection is active.</param>
89
90
/// <param name="exception">The collected exception, or null if none has been collected or if no collection is active.</param>
90
91
/// <returns>True if properties could be collected.</returns>
91
-
/// <example>
92
-
/// This overload provides the exception collected by the diagnostic context, which is useful when unhandled exceptions are handled
93
-
/// before reaching Serilog's RequestLoggingMiddleware. One example is using https://www.nuget.org/packages/Hellang.Middleware.ProblemDetails to transform
94
-
/// exceptions to ProblemDetails responses.
95
-
/// </example>
96
-
/// <remarks>
97
-
/// If an unhandled exception reaches Serilog's RequestLoggingMiddleware, then the unhandled exception should take precedence.<br/>
0 commit comments