From e505fb040cd57263bdb3470047e164d4dcb88a52 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Fri, 13 Sep 2024 13:17:42 +0000 Subject: [PATCH 1/2] Update dependencies from https://github.com/dotnet/runtime build 20240912.10 Microsoft.Bcl.AsyncInterfaces , Microsoft.Bcl.TimeProvider , Microsoft.Extensions.Caching.Abstractions , Microsoft.Extensions.Caching.Memory , Microsoft.Extensions.Configuration , Microsoft.Extensions.Configuration.Abstractions , Microsoft.Extensions.Configuration.Binder , Microsoft.Extensions.Configuration.CommandLine , Microsoft.Extensions.Configuration.EnvironmentVariables , Microsoft.Extensions.Configuration.FileExtensions , Microsoft.Extensions.Configuration.Ini , Microsoft.Extensions.Configuration.Json , Microsoft.Extensions.Configuration.UserSecrets , Microsoft.Extensions.Configuration.Xml , Microsoft.Extensions.DependencyInjection , Microsoft.Extensions.DependencyInjection.Abstractions , Microsoft.Extensions.DependencyModel , Microsoft.Extensions.Diagnostics , Microsoft.Extensions.Diagnostics.Abstractions , Microsoft.Extensions.FileProviders.Abstractions , Microsoft.Extensions.FileProviders.Composite , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.HostFactoryResolver.Sources , Microsoft.Extensions.Hosting , Microsoft.Extensions.Hosting.Abstractions , Microsoft.Extensions.Http , Microsoft.Extensions.Logging , Microsoft.Extensions.Logging.Abstractions , Microsoft.Extensions.Logging.Configuration , Microsoft.Extensions.Logging.Console , Microsoft.Extensions.Logging.Debug , Microsoft.Extensions.Logging.EventLog , Microsoft.Extensions.Logging.EventSource , Microsoft.Extensions.Logging.TraceSource , Microsoft.Extensions.Options , Microsoft.Extensions.Options.ConfigurationExtensions , Microsoft.Extensions.Options.DataAnnotations , Microsoft.Extensions.Primitives , Microsoft.Internal.Runtime.AspNetCore.Transport , Microsoft.NET.Runtime.MonoAOTCompiler.Task , Microsoft.NET.Runtime.WebAssembly.Sdk , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.BrowserDebugHost.Transport , Microsoft.NETCore.Platforms , System.Collections.Immutable , System.Composition , System.Configuration.ConfigurationManager , System.Diagnostics.DiagnosticSource , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices.Protocols , System.IO.Hashing , System.IO.Pipelines , System.Net.Http.Json , System.Net.Http.WinHttpHandler , System.Net.ServerSentEvents , System.Reflection.Metadata , System.Resources.Extensions , System.Runtime.Caching , System.Security.Cryptography.Pkcs , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceProcess.ServiceController , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Threading.Channels , System.Threading.RateLimiting , Microsoft.SourceBuild.Intermediate.runtime.linux-x64 From Version 9.0.0-rc.2.24461.16 -> To Version 9.0.0-rc.2.24462.10 --- eng/Version.Details.xml | 288 ++++++++++++++++++++-------------------- eng/Versions.props | 144 ++++++++++---------- 2 files changed, 216 insertions(+), 216 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 97850f9e2dbf..16913c01b463 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -42,292 +42,292 @@ https://github.com/dotnet/efcore 2117dad117bad4a8581d3d0bbe699fe569c67b37 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 https://github.com/dotnet/xdt @@ -367,9 +367,9 @@ afa1eb6821f62183651ab017b2f5c3fbeb934904 - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 @@ -380,9 +380,9 @@ - + https://github.com/dotnet/runtime - 73229ad78184da1ee76e60e937651e4b8827f31c + 9bff9c5017d8444fdf76959c112dd9fed2da9317 https://github.com/dotnet/winforms diff --git a/eng/Versions.props b/eng/Versions.props index 0320ae69ca77..14ce5d5d2905 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -67,80 +67,80 @@ --> - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 - 9.0.0-rc.2.24461.16 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 + 9.0.0-rc.2.24462.10 9.0.0-preview.8.24456.2 9.0.0-preview.8.24456.2 From 63e59de50b571de3079e6fa9817ed4b7478bfe74 Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Fri, 13 Sep 2024 16:43:11 +0000 Subject: [PATCH 2/2] Fix linker warnings --- src/Components/Forms/src/FieldIdentifier.cs | 4 ++-- src/SignalR/server/Core/src/DynamicHub.cs | 3 +++ src/SignalR/server/Core/src/DynamicHubClients.cs | 2 ++ src/SignalR/server/Core/src/Internal/DynamicClientProxy.cs | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Components/Forms/src/FieldIdentifier.cs b/src/Components/Forms/src/FieldIdentifier.cs index 3a5eab25b70c..1ff67d80c610 100644 --- a/src/Components/Forms/src/FieldIdentifier.cs +++ b/src/Components/Forms/src/FieldIdentifier.cs @@ -126,7 +126,7 @@ private static void ParseAccessor(Expression> accessor, out object mo // so, given that it embeds captured values such as "this". We could consider special-casing // for "() => something.Member" and building a cache keyed by "something.GetType()" with values // of type Func so we can cheaply map from "something" to "something.Member". - var modelLambda = Expression.Lambda(memberExpression.Expression); + var modelLambda = Expression.Lambda(typeof(Func), memberExpression.Expression); var modelLambdaCompiled = (Func)modelLambda.Compile(); var result = modelLambdaCompiled() ?? throw new ArgumentException("The provided expression must evaluate to a non-null value."); @@ -201,7 +201,7 @@ static Func CreateAccessor((Type model, MemberInfo member) arg) private static object GetModelFromIndexer(Expression methodCallExpression) { object model; - var methodCallObjectLambda = Expression.Lambda(methodCallExpression!); + var methodCallObjectLambda = Expression.Lambda(typeof(Func), methodCallExpression!); var methodCallObjectLambdaCompiled = (Func)methodCallObjectLambda.Compile(); var result = methodCallObjectLambdaCompiled(); if (result is null) diff --git a/src/SignalR/server/Core/src/DynamicHub.cs b/src/SignalR/server/Core/src/DynamicHub.cs index 8375c80d4063..131a7aedcc76 100644 --- a/src/SignalR/server/Core/src/DynamicHub.cs +++ b/src/SignalR/server/Core/src/DynamicHub.cs @@ -1,11 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics.CodeAnalysis; + namespace Microsoft.AspNetCore.SignalR; /// /// A base class for SignalR hubs that use dynamic to represent client invocations. /// +[RequiresDynamicCode("DynamicHub requires dynamic code generation to construct a call site.")] public abstract class DynamicHub : Hub { private DynamicHubClients? _clients; diff --git a/src/SignalR/server/Core/src/DynamicHubClients.cs b/src/SignalR/server/Core/src/DynamicHubClients.cs index 6151e5b12296..17594cbce575 100644 --- a/src/SignalR/server/Core/src/DynamicHubClients.cs +++ b/src/SignalR/server/Core/src/DynamicHubClients.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics.CodeAnalysis; using Microsoft.AspNetCore.SignalR.Internal; namespace Microsoft.AspNetCore.SignalR; @@ -8,6 +9,7 @@ namespace Microsoft.AspNetCore.SignalR; /// /// A class that provides dynamic access to connections, including the one that sent the current invocation. /// +[RequiresDynamicCodeAttribute("DynamicHubClients requires dynamic code generation to construct a call site.")] public class DynamicHubClients { private readonly IHubCallerClients _clients; diff --git a/src/SignalR/server/Core/src/Internal/DynamicClientProxy.cs b/src/SignalR/server/Core/src/Internal/DynamicClientProxy.cs index e8f1f49f909e..9c2f769fdacf 100644 --- a/src/SignalR/server/Core/src/Internal/DynamicClientProxy.cs +++ b/src/SignalR/server/Core/src/Internal/DynamicClientProxy.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics.CodeAnalysis; using System.Dynamic; namespace Microsoft.AspNetCore.SignalR.Internal; @@ -9,6 +10,7 @@ internal sealed class DynamicClientProxy : DynamicObject { private readonly IClientProxy _clientProxy; + [RequiresDynamicCodeAttribute("This constructor requires dynamic code generation to construct a call site.")] public DynamicClientProxy(IClientProxy clientProxy) { _clientProxy = clientProxy;