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
Copy file name to clipboardExpand all lines: src/Extensions/IAsyncLogSinkExtensions.cs
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
usingSystem;
2
+
usingSystem.Threading;
2
3
usingSystem.Threading.Tasks;
3
4
4
5
namespaceWB.Logging;
@@ -16,15 +17,18 @@ internal static class IAsyncLogSinkExtensions
16
17
/// Submits the <paramref name="logMessage"/> to <paramref name="this"/> <see cref="IAsyncLogSink"/> safely,
17
18
/// catching any exceptions that occur and logging them to the console or a fallback logger instead of throwing.
18
19
/// </summary>
20
+
/// <typeparam name="TPayload">The <see cref="Type"/> of the payload of the log message.</typeparam>
19
21
/// <param name="this">The <see cref="IAsyncLogSink"/> to submit the log message to.</param>
20
22
/// <param name="logMessage">The log message to submit.</param>
23
+
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe while waiting for the task to complete.</param>
21
24
/// <returns>A <see cref="Task"/> that represents the asynchronous operation.</returns>
22
25
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1031:Do not catch general exception types",Justification="We want to catch all exceptions to prevent logging failures from crashing the application.")]
Copy file name to clipboardExpand all lines: src/Extensions/ILogSinkExtensions.cs
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,13 @@ internal static class ILogSinkExtensions
16
16
/// Submits the <paramref name="logMessage"/> to <paramref name="this"/> <see cref="ILogSink"/> safely,
17
17
/// catching any exceptions that occur and logging them to the console or a fallback logger instead of throwing.
18
18
/// </summary>
19
+
/// <typeparam name="TPayload">The <see cref="Type"/> of the payload of the log message.</typeparam>
19
20
/// <param name="this">The <see cref="ILogSink"/> to submit the log message to.</param>
20
21
/// <param name="logMessage">The log message to submit.</param>
21
22
/// <returns>A <see cref="Task"/> that represents the asynchronous operation.</returns>
22
23
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1031:Do not catch general exception types",Justification="We want to catch all exceptions to prevent logging failures from crashing the application.")]
0 commit comments