Skip to content

Commit 4f2a59c

Browse files
[release/9.0] Update dependencies from dotnet/runtime (#57858)
[release/9.0] Update dependencies from dotnet/runtime - Fix linker warnings
1 parent 18971d2 commit 4f2a59c

File tree

6 files changed

+225
-218
lines changed

6 files changed

+225
-218
lines changed

eng/Version.Details.xml

Lines changed: 144 additions & 144 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -67,80 +67,80 @@
6767
-->
6868
<PropertyGroup Label="Automated">
6969
<!-- Packages from dotnet/runtime -->
70-
<MicrosoftExtensionsDependencyModelVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsDependencyModelVersion>
71-
<MicrosoftNETCoreAppRefVersion>9.0.0-rc.2.24461.16</MicrosoftNETCoreAppRefVersion>
72-
<MicrosoftNETCoreAppRuntimewinx64Version>9.0.0-rc.2.24461.16</MicrosoftNETCoreAppRuntimewinx64Version>
73-
<MicrosoftNETRuntimeMonoAOTCompilerTaskVersion>9.0.0-rc.2.24461.16</MicrosoftNETRuntimeMonoAOTCompilerTaskVersion>
74-
<MicrosoftNETRuntimeWebAssemblySdkVersion>9.0.0-rc.2.24461.16</MicrosoftNETRuntimeWebAssemblySdkVersion>
75-
<MicrosoftNETCoreAppRuntimeAOTwinx64CrossbrowserwasmVersion>9.0.0-rc.2.24461.16</MicrosoftNETCoreAppRuntimeAOTwinx64CrossbrowserwasmVersion>
76-
<MicrosoftNETCoreBrowserDebugHostTransportVersion>9.0.0-rc.2.24461.16</MicrosoftNETCoreBrowserDebugHostTransportVersion>
77-
<MicrosoftExtensionsCachingAbstractionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsCachingAbstractionsVersion>
78-
<MicrosoftExtensionsCachingMemoryVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsCachingMemoryVersion>
79-
<MicrosoftExtensionsConfigurationAbstractionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationAbstractionsVersion>
80-
<MicrosoftExtensionsConfigurationBinderVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationBinderVersion>
81-
<MicrosoftExtensionsConfigurationCommandLineVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationCommandLineVersion>
82-
<MicrosoftExtensionsConfigurationEnvironmentVariablesVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationEnvironmentVariablesVersion>
83-
<MicrosoftExtensionsConfigurationFileExtensionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationFileExtensionsVersion>
84-
<MicrosoftExtensionsConfigurationIniVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationIniVersion>
85-
<MicrosoftExtensionsConfigurationJsonVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationJsonVersion>
86-
<MicrosoftExtensionsConfigurationVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationVersion>
87-
<MicrosoftExtensionsConfigurationUserSecretsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationUserSecretsVersion>
88-
<MicrosoftExtensionsConfigurationXmlVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsConfigurationXmlVersion>
89-
<MicrosoftExtensionsDependencyInjectionAbstractionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsDependencyInjectionAbstractionsVersion>
90-
<MicrosoftExtensionsDependencyInjectionVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsDependencyInjectionVersion>
91-
<MicrosoftExtensionsDiagnosticsAbstractionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsDiagnosticsAbstractionsVersion>
92-
<MicrosoftExtensionsDiagnosticsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsDiagnosticsVersion>
93-
<MicrosoftExtensionsFileProvidersAbstractionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsFileProvidersAbstractionsVersion>
94-
<MicrosoftExtensionsFileProvidersCompositeVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsFileProvidersCompositeVersion>
95-
<MicrosoftExtensionsFileProvidersPhysicalVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsFileProvidersPhysicalVersion>
96-
<MicrosoftExtensionsFileSystemGlobbingVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsFileSystemGlobbingVersion>
97-
<MicrosoftExtensionsHostFactoryResolverSourcesVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsHostFactoryResolverSourcesVersion>
98-
<MicrosoftExtensionsHostingAbstractionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsHostingAbstractionsVersion>
99-
<MicrosoftExtensionsHostingVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsHostingVersion>
100-
<MicrosoftExtensionsHttpVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsHttpVersion>
101-
<MicrosoftExtensionsLoggingAbstractionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsLoggingAbstractionsVersion>
102-
<MicrosoftExtensionsLoggingConfigurationVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsLoggingConfigurationVersion>
103-
<MicrosoftExtensionsLoggingConsoleVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsLoggingConsoleVersion>
104-
<MicrosoftExtensionsLoggingDebugVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsLoggingDebugVersion>
105-
<MicrosoftExtensionsLoggingEventSourceVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsLoggingEventSourceVersion>
106-
<MicrosoftExtensionsLoggingEventLogVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsLoggingEventLogVersion>
107-
<MicrosoftExtensionsLoggingVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsLoggingVersion>
108-
<MicrosoftExtensionsLoggingTraceSourceVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsLoggingTraceSourceVersion>
109-
<MicrosoftExtensionsOptionsConfigurationExtensionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsOptionsConfigurationExtensionsVersion>
110-
<MicrosoftExtensionsOptionsDataAnnotationsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsOptionsDataAnnotationsVersion>
111-
<MicrosoftExtensionsOptionsVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsOptionsVersion>
112-
<MicrosoftExtensionsPrimitivesVersion>9.0.0-rc.2.24461.16</MicrosoftExtensionsPrimitivesVersion>
113-
<MicrosoftInternalRuntimeAspNetCoreTransportVersion>9.0.0-rc.2.24461.16</MicrosoftInternalRuntimeAspNetCoreTransportVersion>
114-
<MicrosoftSourceBuildIntermediateruntimelinuxx64Version>9.0.0-rc.2.24461.16</MicrosoftSourceBuildIntermediateruntimelinuxx64Version>
115-
<SystemCompositionVersion>9.0.0-rc.2.24461.16</SystemCompositionVersion>
116-
<SystemConfigurationConfigurationManagerVersion>9.0.0-rc.2.24461.16</SystemConfigurationConfigurationManagerVersion>
117-
<SystemDiagnosticsDiagnosticSourceVersion>9.0.0-rc.2.24461.16</SystemDiagnosticsDiagnosticSourceVersion>
118-
<SystemDiagnosticsEventLogVersion>9.0.0-rc.2.24461.16</SystemDiagnosticsEventLogVersion>
119-
<SystemDirectoryServicesProtocolsVersion>9.0.0-rc.2.24461.16</SystemDirectoryServicesProtocolsVersion>
120-
<SystemIOPipelinesVersion>9.0.0-rc.2.24461.16</SystemIOPipelinesVersion>
121-
<SystemNetHttpJsonVersion>9.0.0-rc.2.24461.16</SystemNetHttpJsonVersion>
122-
<SystemNetHttpWinHttpHandlerVersion>9.0.0-rc.2.24461.16</SystemNetHttpWinHttpHandlerVersion>
123-
<SystemNetServerSentEventsVersion>9.0.0-rc.2.24461.16</SystemNetServerSentEventsVersion>
124-
<SystemReflectionMetadataVersion>9.0.0-rc.2.24461.16</SystemReflectionMetadataVersion>
125-
<SystemResourcesExtensionsVersion>9.0.0-rc.2.24461.16</SystemResourcesExtensionsVersion>
126-
<SystemSecurityCryptographyPkcsVersion>9.0.0-rc.2.24461.16</SystemSecurityCryptographyPkcsVersion>
127-
<SystemSecurityCryptographyXmlVersion>9.0.0-rc.2.24461.16</SystemSecurityCryptographyXmlVersion>
128-
<SystemSecurityPermissionsVersion>9.0.0-rc.2.24461.16</SystemSecurityPermissionsVersion>
129-
<SystemServiceProcessServiceControllerVersion>9.0.0-rc.2.24461.16</SystemServiceProcessServiceControllerVersion>
130-
<SystemTextEncodingsWebVersion>9.0.0-rc.2.24461.16</SystemTextEncodingsWebVersion>
131-
<SystemTextJsonVersion>9.0.0-rc.2.24461.16</SystemTextJsonVersion>
132-
<SystemThreadingAccessControlVersion>9.0.0-rc.2.24461.16</SystemThreadingAccessControlVersion>
133-
<SystemThreadingChannelsVersion>9.0.0-rc.2.24461.16</SystemThreadingChannelsVersion>
134-
<SystemThreadingRateLimitingVersion>9.0.0-rc.2.24461.16</SystemThreadingRateLimitingVersion>
70+
<MicrosoftExtensionsDependencyModelVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsDependencyModelVersion>
71+
<MicrosoftNETCoreAppRefVersion>9.0.0-rc.2.24462.10</MicrosoftNETCoreAppRefVersion>
72+
<MicrosoftNETCoreAppRuntimewinx64Version>9.0.0-rc.2.24462.10</MicrosoftNETCoreAppRuntimewinx64Version>
73+
<MicrosoftNETRuntimeMonoAOTCompilerTaskVersion>9.0.0-rc.2.24462.10</MicrosoftNETRuntimeMonoAOTCompilerTaskVersion>
74+
<MicrosoftNETRuntimeWebAssemblySdkVersion>9.0.0-rc.2.24462.10</MicrosoftNETRuntimeWebAssemblySdkVersion>
75+
<MicrosoftNETCoreAppRuntimeAOTwinx64CrossbrowserwasmVersion>9.0.0-rc.2.24462.10</MicrosoftNETCoreAppRuntimeAOTwinx64CrossbrowserwasmVersion>
76+
<MicrosoftNETCoreBrowserDebugHostTransportVersion>9.0.0-rc.2.24462.10</MicrosoftNETCoreBrowserDebugHostTransportVersion>
77+
<MicrosoftExtensionsCachingAbstractionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsCachingAbstractionsVersion>
78+
<MicrosoftExtensionsCachingMemoryVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsCachingMemoryVersion>
79+
<MicrosoftExtensionsConfigurationAbstractionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationAbstractionsVersion>
80+
<MicrosoftExtensionsConfigurationBinderVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationBinderVersion>
81+
<MicrosoftExtensionsConfigurationCommandLineVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationCommandLineVersion>
82+
<MicrosoftExtensionsConfigurationEnvironmentVariablesVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationEnvironmentVariablesVersion>
83+
<MicrosoftExtensionsConfigurationFileExtensionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationFileExtensionsVersion>
84+
<MicrosoftExtensionsConfigurationIniVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationIniVersion>
85+
<MicrosoftExtensionsConfigurationJsonVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationJsonVersion>
86+
<MicrosoftExtensionsConfigurationVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationVersion>
87+
<MicrosoftExtensionsConfigurationUserSecretsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationUserSecretsVersion>
88+
<MicrosoftExtensionsConfigurationXmlVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsConfigurationXmlVersion>
89+
<MicrosoftExtensionsDependencyInjectionAbstractionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsDependencyInjectionAbstractionsVersion>
90+
<MicrosoftExtensionsDependencyInjectionVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsDependencyInjectionVersion>
91+
<MicrosoftExtensionsDiagnosticsAbstractionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsDiagnosticsAbstractionsVersion>
92+
<MicrosoftExtensionsDiagnosticsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsDiagnosticsVersion>
93+
<MicrosoftExtensionsFileProvidersAbstractionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsFileProvidersAbstractionsVersion>
94+
<MicrosoftExtensionsFileProvidersCompositeVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsFileProvidersCompositeVersion>
95+
<MicrosoftExtensionsFileProvidersPhysicalVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsFileProvidersPhysicalVersion>
96+
<MicrosoftExtensionsFileSystemGlobbingVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsFileSystemGlobbingVersion>
97+
<MicrosoftExtensionsHostFactoryResolverSourcesVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsHostFactoryResolverSourcesVersion>
98+
<MicrosoftExtensionsHostingAbstractionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsHostingAbstractionsVersion>
99+
<MicrosoftExtensionsHostingVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsHostingVersion>
100+
<MicrosoftExtensionsHttpVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsHttpVersion>
101+
<MicrosoftExtensionsLoggingAbstractionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsLoggingAbstractionsVersion>
102+
<MicrosoftExtensionsLoggingConfigurationVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsLoggingConfigurationVersion>
103+
<MicrosoftExtensionsLoggingConsoleVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsLoggingConsoleVersion>
104+
<MicrosoftExtensionsLoggingDebugVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsLoggingDebugVersion>
105+
<MicrosoftExtensionsLoggingEventSourceVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsLoggingEventSourceVersion>
106+
<MicrosoftExtensionsLoggingEventLogVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsLoggingEventLogVersion>
107+
<MicrosoftExtensionsLoggingVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsLoggingVersion>
108+
<MicrosoftExtensionsLoggingTraceSourceVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsLoggingTraceSourceVersion>
109+
<MicrosoftExtensionsOptionsConfigurationExtensionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsOptionsConfigurationExtensionsVersion>
110+
<MicrosoftExtensionsOptionsDataAnnotationsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsOptionsDataAnnotationsVersion>
111+
<MicrosoftExtensionsOptionsVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsOptionsVersion>
112+
<MicrosoftExtensionsPrimitivesVersion>9.0.0-rc.2.24462.10</MicrosoftExtensionsPrimitivesVersion>
113+
<MicrosoftInternalRuntimeAspNetCoreTransportVersion>9.0.0-rc.2.24462.10</MicrosoftInternalRuntimeAspNetCoreTransportVersion>
114+
<MicrosoftSourceBuildIntermediateruntimelinuxx64Version>9.0.0-rc.2.24462.10</MicrosoftSourceBuildIntermediateruntimelinuxx64Version>
115+
<SystemCompositionVersion>9.0.0-rc.2.24462.10</SystemCompositionVersion>
116+
<SystemConfigurationConfigurationManagerVersion>9.0.0-rc.2.24462.10</SystemConfigurationConfigurationManagerVersion>
117+
<SystemDiagnosticsDiagnosticSourceVersion>9.0.0-rc.2.24462.10</SystemDiagnosticsDiagnosticSourceVersion>
118+
<SystemDiagnosticsEventLogVersion>9.0.0-rc.2.24462.10</SystemDiagnosticsEventLogVersion>
119+
<SystemDirectoryServicesProtocolsVersion>9.0.0-rc.2.24462.10</SystemDirectoryServicesProtocolsVersion>
120+
<SystemIOPipelinesVersion>9.0.0-rc.2.24462.10</SystemIOPipelinesVersion>
121+
<SystemNetHttpJsonVersion>9.0.0-rc.2.24462.10</SystemNetHttpJsonVersion>
122+
<SystemNetHttpWinHttpHandlerVersion>9.0.0-rc.2.24462.10</SystemNetHttpWinHttpHandlerVersion>
123+
<SystemNetServerSentEventsVersion>9.0.0-rc.2.24462.10</SystemNetServerSentEventsVersion>
124+
<SystemReflectionMetadataVersion>9.0.0-rc.2.24462.10</SystemReflectionMetadataVersion>
125+
<SystemResourcesExtensionsVersion>9.0.0-rc.2.24462.10</SystemResourcesExtensionsVersion>
126+
<SystemSecurityCryptographyPkcsVersion>9.0.0-rc.2.24462.10</SystemSecurityCryptographyPkcsVersion>
127+
<SystemSecurityCryptographyXmlVersion>9.0.0-rc.2.24462.10</SystemSecurityCryptographyXmlVersion>
128+
<SystemSecurityPermissionsVersion>9.0.0-rc.2.24462.10</SystemSecurityPermissionsVersion>
129+
<SystemServiceProcessServiceControllerVersion>9.0.0-rc.2.24462.10</SystemServiceProcessServiceControllerVersion>
130+
<SystemTextEncodingsWebVersion>9.0.0-rc.2.24462.10</SystemTextEncodingsWebVersion>
131+
<SystemTextJsonVersion>9.0.0-rc.2.24462.10</SystemTextJsonVersion>
132+
<SystemThreadingAccessControlVersion>9.0.0-rc.2.24462.10</SystemThreadingAccessControlVersion>
133+
<SystemThreadingChannelsVersion>9.0.0-rc.2.24462.10</SystemThreadingChannelsVersion>
134+
<SystemThreadingRateLimitingVersion>9.0.0-rc.2.24462.10</SystemThreadingRateLimitingVersion>
135135
<!-- Only listed explicitly to workaround https://github.com/dotnet/cli/issues/10528 -->
136-
<MicrosoftNETCorePlatformsVersion>9.0.0-rc.2.24461.16</MicrosoftNETCorePlatformsVersion>
137-
<MicrosoftBclAsyncInterfacesVersion>9.0.0-rc.2.24461.16</MicrosoftBclAsyncInterfacesVersion>
136+
<MicrosoftNETCorePlatformsVersion>9.0.0-rc.2.24462.10</MicrosoftNETCorePlatformsVersion>
137+
<MicrosoftBclAsyncInterfacesVersion>9.0.0-rc.2.24462.10</MicrosoftBclAsyncInterfacesVersion>
138138
<!-- Transitive package to provide coherency in dotnet/extensions -->
139-
<MicrosoftBclTimeProviderVersion>9.0.0-rc.2.24461.16</MicrosoftBclTimeProviderVersion>
140-
<SystemCollectionsImmutableVersion>9.0.0-rc.2.24461.16</SystemCollectionsImmutableVersion>
141-
<SystemDiagnosticsPerformanceCounterVersion>9.0.0-rc.2.24461.16</SystemDiagnosticsPerformanceCounterVersion>
142-
<SystemIOHashingVersion>9.0.0-rc.2.24461.16</SystemIOHashingVersion>
143-
<SystemRuntimeCachingVersion>9.0.0-rc.2.24461.16</SystemRuntimeCachingVersion>
139+
<MicrosoftBclTimeProviderVersion>9.0.0-rc.2.24462.10</MicrosoftBclTimeProviderVersion>
140+
<SystemCollectionsImmutableVersion>9.0.0-rc.2.24462.10</SystemCollectionsImmutableVersion>
141+
<SystemDiagnosticsPerformanceCounterVersion>9.0.0-rc.2.24462.10</SystemDiagnosticsPerformanceCounterVersion>
142+
<SystemIOHashingVersion>9.0.0-rc.2.24462.10</SystemIOHashingVersion>
143+
<SystemRuntimeCachingVersion>9.0.0-rc.2.24462.10</SystemRuntimeCachingVersion>
144144
<!-- Packages from dotnet/extensions -->
145145
<MicrosoftExtensionsDiagnosticsTestingVersion>9.0.0-preview.8.24456.2</MicrosoftExtensionsDiagnosticsTestingVersion>
146146
<MicrosoftExtensionsTimeProviderTestingVersion>9.0.0-preview.8.24456.2</MicrosoftExtensionsTimeProviderTestingVersion>

src/Components/Forms/src/FieldIdentifier.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private static void ParseAccessor<T>(Expression<Func<T>> accessor, out object mo
126126
// so, given that it embeds captured values such as "this". We could consider special-casing
127127
// for "() => something.Member" and building a cache keyed by "something.GetType()" with values
128128
// of type Func<object, object> so we can cheaply map from "something" to "something.Member".
129-
var modelLambda = Expression.Lambda(memberExpression.Expression);
129+
var modelLambda = Expression.Lambda(typeof(Func<object?>), memberExpression.Expression);
130130
var modelLambdaCompiled = (Func<object?>)modelLambda.Compile();
131131
var result = modelLambdaCompiled() ??
132132
throw new ArgumentException("The provided expression must evaluate to a non-null value.");
@@ -201,7 +201,7 @@ static Func<object, object> CreateAccessor((Type model, MemberInfo member) arg)
201201
private static object GetModelFromIndexer(Expression methodCallExpression)
202202
{
203203
object model;
204-
var methodCallObjectLambda = Expression.Lambda(methodCallExpression!);
204+
var methodCallObjectLambda = Expression.Lambda(typeof(Func<object?>), methodCallExpression!);
205205
var methodCallObjectLambdaCompiled = (Func<object?>)methodCallObjectLambda.Compile();
206206
var result = methodCallObjectLambdaCompiled();
207207
if (result is null)

src/SignalR/server/Core/src/DynamicHub.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using System.Diagnostics.CodeAnalysis;
5+
46
namespace Microsoft.AspNetCore.SignalR;
57

68
/// <summary>
79
/// A base class for SignalR hubs that use <c>dynamic</c> to represent client invocations.
810
/// </summary>
11+
[RequiresDynamicCode("DynamicHub requires dynamic code generation to construct a call site.")]
912
public abstract class DynamicHub : Hub
1013
{
1114
private DynamicHubClients? _clients;

src/SignalR/server/Core/src/DynamicHubClients.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using System.Diagnostics.CodeAnalysis;
45
using Microsoft.AspNetCore.SignalR.Internal;
56

67
namespace Microsoft.AspNetCore.SignalR;
78

89
/// <summary>
910
/// A class that provides <c>dynamic</c> access to connections, including the one that sent the current invocation.
1011
/// </summary>
12+
[RequiresDynamicCodeAttribute("DynamicHubClients requires dynamic code generation to construct a call site.")]
1113
public class DynamicHubClients
1214
{
1315
private readonly IHubCallerClients _clients;

src/SignalR/server/Core/src/Internal/DynamicClientProxy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using System.Diagnostics.CodeAnalysis;
45
using System.Dynamic;
56

67
namespace Microsoft.AspNetCore.SignalR.Internal;
@@ -9,6 +10,7 @@ internal sealed class DynamicClientProxy : DynamicObject
910
{
1011
private readonly IClientProxy _clientProxy;
1112

13+
[RequiresDynamicCodeAttribute("This constructor requires dynamic code generation to construct a call site.")]
1214
public DynamicClientProxy(IClientProxy clientProxy)
1315
{
1416
_clientProxy = clientProxy;

0 commit comments

Comments
 (0)