[Refactor] Use static lambdas in LINQ queries for improved performance

This commit is contained in:
2025-11-24 03:00:06 +00:00
parent 5fe7f574d6
commit 04c45e69fa
126 changed files with 971 additions and 929 deletions

View File

@@ -35,7 +35,7 @@ public static class Program
{
public static int Main(string[] args)
{
SentrySdk.Init(options =>
SentrySdk.Init(static options =>
{
// A Sentry Data Source Name (DSN) is required.
// See https://docs.sentry.io/product/sentry-basics/dsn-explainer/
@@ -59,7 +59,7 @@ public static class Program
options.IsGlobalModeEnabled = true;
});
SentrySdk.ConfigureScope(scope => scope.SetExtra("Args", Environment.GetCommandLineArgs()));
SentrySdk.ConfigureScope(static scope => scope.SetExtra("Args", Environment.GetCommandLineArgs()));
// There are too many places that depend on this being inited to be sure all are covered, so init it here.
PluginBase.Init();