[API Proposal]: Add overload for EventSource primitives (#83751)
authorAndy Gocke <angocke@microsoft.com>
Wed, 14 Jun 2023 05:58:00 +0000 (22:58 -0700)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 05:58:00 +0000 (22:58 -0700)
commit48e1fb81858cee39be6b53b24566957aa546e891
treeb46dc8557ed42dd25f86af5fa838b143ec3fca06
parent6a6339fb6ed7f828242b9557c36e2df669a26587
[API Proposal]: Add overload for EventSource primitives (#83751)

I've seen a lot of calls to the varargs EventSource overload that have to manually
suppress the trim warning because they only use primitive types.

Adding this overload solves two problems:
  1. Users won't get a warning if their usage is safe.
  2. Users won't have to suppress a warning.
13 files changed:
src/coreclr/System.Private.CoreLib/CompatibilitySuppressions.xml
src/coreclr/nativeaot/System.Private.CoreLib/src/CompatibilitySuppressions.xml
src/libraries/Common/src/System/Net/Security/NetEventSource.Security.Windows.cs
src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Metrics/MetricsEventSource.cs
src/libraries/System.Diagnostics.Tracing/ref/System.Diagnostics.Tracing.cs
src/libraries/System.Diagnostics.Tracing/tests/TrimmingTests/EventSourcePropertyValueTest.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventSource.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TplEventSource.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/OpenSslX509ChainEventSource.cs
src/libraries/System.Threading.Tasks.Dataflow/src/Internal/DataflowEtwProvider.cs
src/libraries/System.Transactions.Local/src/System/Transactions/TransactionsEtwProvider.cs
src/mono/System.Private.CoreLib/CompatibilitySuppressions.xml