未验证 提交 6410312a 编写于 作者: G github-actions[bot] 提交者: GitHub

Sync shared code from aspnetcore (#67456)

上级 8bdc4e76
......@@ -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;
......@@ -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())
......@@ -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())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册