Skip to content

Commit b12003e

Browse files
amcaseysbomerwtgodbeJamesNK
authored
Update SDK to 23523.1 (#51588)
Co-authored-by: Sven Boemer <sbomer@gmail.com> Co-authored-by: William Godbe <wigodbe@microsoft.com> Co-authored-by: James Newton-King <james@newtonking.com>
1 parent ffa0a02 commit b12003e

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"sdk": {
3-
"version": "9.0.100-alpha.1.23504.14"
3+
"version": "9.0.100-alpha.1.23524.8"
44
},
55
"tools": {
6-
"dotnet": "9.0.100-alpha.1.23504.14",
6+
"dotnet": "9.0.100-alpha.1.23524.8",
77
"runtimes": {
88
"dotnet/x86": [
99
"$(MicrosoftNETCoreBrowserDebugHostTransportVersion)"

src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,12 @@ private static Task GetTaskByType(Type type, object obj)
388388
private static (MethodInfo methodInfo, Type[] parameterTypes) GetCachedMethodInfo(IDotNetObjectReference objectReference, string methodIdentifier)
389389
{
390390
var type = objectReference.Value.GetType();
391+
392+
// Suppressed with "pragma warning disable" in addition to WarningSuppressions.xml so ILLink Roslyn Anayzer doesn't report the warning.
393+
#pragma warning disable IL2111 // Method with parameters or return value with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method.
391394
var assemblyMethods = _cachedMethodsByType.GetOrAdd(type, ScanTypeForCallableMethods);
395+
#pragma warning restore IL2111 // Method with parameters or return value with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method.
396+
392397
if (assemblyMethods.TryGetValue(methodIdentifier, out var result))
393398
{
394399
return result;

src/JSInterop/Microsoft.JSInterop/src/Microsoft.JSInterop.WarningSuppressions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<linker>
33
<assembly fullname="Microsoft.JSInterop, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60">
44
<attribute fullname="System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessageAttribute">
@@ -74,4 +74,4 @@
7474
<property name="Target">M:Microsoft.JSInterop.Infrastructure.DotNetDispatcher.GetCachedMethodInfo(Microsoft.JSInterop.Infrastructure.IDotNetObjectReference,System.String)</property>
7575
</attribute>
7676
</assembly>
77-
</linker>
77+
</linker>

src/SignalR/clients/csharp/Client.Core/src/HubConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ async Task ReadAsyncEnumerableStream()
863863
{
864864
var streamValues = AsyncEnumerableAdapters.MakeCancelableTypedAsyncEnumerable(stream, tokenSource);
865865

866-
await foreach (var streamValue in streamValues)
866+
await foreach (var streamValue in streamValues.ConfigureAwait(false))
867867
{
868868
await SendWithLock(connectionState, new StreamItemMessage(streamId, streamValue), tokenSource.Token).ConfigureAwait(false);
869869
Log.SendingStreamItem(_logger, streamId);

0 commit comments

Comments
 (0)