From ab50c4e79a11380447fe554682faba29d7b24f5d Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 07:55:48 +0000 Subject: [PATCH] [main] Update dependencies from dotnet/runtime (#57742) [main] Update dependencies from dotnet/runtime - Apply workaround for linker issues - Fix for linker errors - Embed descriptors file in test project - Fix typo --- eng/Version.Details.xml | 288 +++++++++--------- eng/Versions.props | 144 ++++----- eng/testing/linker/ILLink.Descriptors.xml | 5 + eng/testing/linker/project.csproj.template | 7 + eng/testing/linker/trimmingTests.targets | 2 + src/Components/Forms/src/FieldIdentifier.cs | 4 +- src/SignalR/server/Core/src/DynamicHub.cs | 2 + .../server/Core/src/DynamicHubClients.cs | 2 + .../Core/src/Internal/DynamicClientProxy.cs | 2 + 9 files changed, 238 insertions(+), 218 deletions(-) create mode 100644 eng/testing/linker/ILLink.Descriptors.xml diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 91c91d0baef3..efd191985077 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -42,292 +42,292 @@ https://github.com/dotnet/efcore ecfee78eb1fa2b2eaa0dbf945f1d4f8fa571be74 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 https://github.com/dotnet/xdt @@ -367,9 +367,9 @@ afa1eb6821f62183651ab017b2f5c3fbeb934904 - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 @@ -380,9 +380,9 @@ - + https://github.com/dotnet/runtime - ce8f49e658d4a31e5708f0c06efa39784ee7c1ad + de8e66d249e5cf3fc6448da3d0e7b7e8f17437b7 https://github.com/dotnet/winforms diff --git a/eng/Versions.props b/eng/Versions.props index e9ff3bfc82f5..f0c209f9c958 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -67,80 +67,80 @@ --> - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 - 10.0.0-alpha.1.24455.17 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 + 10.0.0-alpha.1.24461.1 9.0.0-preview.8.24456.2 9.0.0-preview.8.24456.2 diff --git a/eng/testing/linker/ILLink.Descriptors.xml b/eng/testing/linker/ILLink.Descriptors.xml new file mode 100644 index 000000000000..db1a8759bfb7 --- /dev/null +++ b/eng/testing/linker/ILLink.Descriptors.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/eng/testing/linker/project.csproj.template b/eng/testing/linker/project.csproj.template index ea368a6caa54..660876912c4c 100644 --- a/eng/testing/linker/project.csproj.template +++ b/eng/testing/linker/project.csproj.template @@ -27,4 +27,11 @@ {AdditionalProjectReferences} + + + + ILLink.Descriptors.xml + + + diff --git a/eng/testing/linker/trimmingTests.targets b/eng/testing/linker/trimmingTests.targets index 1018b14a641b..f81f48ecb93a 100644 --- a/eng/testing/linker/trimmingTests.targets +++ b/eng/testing/linker/trimmingTests.targets @@ -96,6 +96,8 @@ + 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..8b8eb67f7f60 100644 --- a/src/SignalR/server/Core/src/DynamicHub.cs +++ b/src/SignalR/server/Core/src/DynamicHub.cs @@ -1,11 +1,13 @@ // 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;