Skip to content

Commit

Permalink
Sync shared code from aspnetcore (dotnet#67456)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 1, 2022
1 parent 8bdc4e7 commit 6410312
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#nullable enable
using System.Collections;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Tracing;
using System.Globalization;
using System.Runtime.CompilerServices;
Expand Down Expand Up @@ -440,6 +441,7 @@ private static string Format(FormattableString s)
#region Custom WriteEvent overloads

[NonEvent]
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Parameters passed to WriteEvent are all primative values.")]
private unsafe void WriteEvent(int eventId, string? arg1, string? arg2, string? arg3, string? arg4)
{
if (IsEnabled())
Expand Down Expand Up @@ -484,6 +486,7 @@ private unsafe void WriteEvent(int eventId, string? arg1, string? arg2, string?
}

[NonEvent]
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Parameters passed to WriteEvent are all primative values.")]
private unsafe void WriteEvent(int eventId, string? arg1, string? arg2, byte[]? arg3)
{
if (IsEnabled())
Expand Down

0 comments on commit 6410312

Please sign in to comment.