diff --git a/global.json b/global.json index f4a4bff27a08..67e65ff94a31 100644 --- a/global.json +++ b/global.json @@ -1,9 +1,9 @@ { "sdk": { - "version": "8.0.100-alpha.1.22616.4" + "version": "8.0.100-alpha.1.22531.1" }, "tools": { - "dotnet": "8.0.100-alpha.1.22616.4", + "dotnet": "8.0.100-alpha.1.22531.1", "runtimes": { "dotnet/x86": [ "$(MicrosoftNETCoreBrowserDebugHostTransportVersion)" diff --git a/src/Components/WebAssembly/WebAssembly/src/HotReload/HotReloadAgent.cs b/src/Components/WebAssembly/WebAssembly/src/HotReload/HotReloadAgent.cs index 662373819d49..76606a3264e7 100644 --- a/src/Components/WebAssembly/WebAssembly/src/HotReload/HotReloadAgent.cs +++ b/src/Components/WebAssembly/WebAssembly/src/HotReload/HotReloadAgent.cs @@ -95,13 +95,13 @@ internal void GetHandlerActions( { bool methodFound = false; - if (GetUpdateMethod("ClearCache") is MethodInfo clearCache) + if (GetUpdateMethod(handlerType, "ClearCache") is MethodInfo clearCache) { handlerActions.ClearCache.Add(CreateAction(clearCache)); methodFound = true; } - if (GetUpdateMethod("UpdateApplication") is MethodInfo updateApplication) + if (GetUpdateMethod(handlerType, "UpdateApplication") is MethodInfo updateApplication) { handlerActions.UpdateApplication.Add(CreateAction(updateApplication)); methodFound = true; @@ -129,7 +129,7 @@ internal void GetHandlerActions( }; } - MethodInfo? GetUpdateMethod(string name) + MethodInfo? GetUpdateMethod([DynamicallyAccessedMembers(HotReloadHandlerLinkerFlags)] Type handlerType, string name) { if (handlerType.GetMethod(name, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static, new[] { typeof(Type[]) }) is MethodInfo updateMethod && updateMethod.ReturnType == typeof(void)) diff --git a/src/Servers/IIS/IIS/test/IIS.Tests/MaxRequestBodySizeTests.cs b/src/Servers/IIS/IIS/test/IIS.Tests/MaxRequestBodySizeTests.cs index 7c0bc894c59b..255fb9d95b60 100644 --- a/src/Servers/IIS/IIS/test/IIS.Tests/MaxRequestBodySizeTests.cs +++ b/src/Servers/IIS/IIS/test/IIS.Tests/MaxRequestBodySizeTests.cs @@ -37,7 +37,7 @@ public async Task RequestBodyTooLargeContentLengthExceedsGlobalLimit() catch (BadHttpRequestException ex) { exception = ex; - throw; + throw ex; } }, LoggerFactory)) { @@ -80,7 +80,7 @@ public async Task RequestBodyTooLargeContentLengthExceedingPerRequestLimit() catch (BadHttpRequestException ex) { exception = ex; - throw; + throw ex; } }, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize })) { @@ -286,7 +286,7 @@ public async Task RequestBodyTooLargeChunked() catch (BadHttpRequestException ex) { exception = ex; - throw; + throw ex; } }, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize })) {