diff --git a/global.json b/global.json index 6cac28c6b323..4ebb0dc46ac4 100644 --- a/global.json +++ b/global.json @@ -1,9 +1,9 @@ { "sdk": { - "version": "8.0.100-alpha.1.22531.1" + "version": "8.0.100-alpha.1.22616.4" }, "tools": { - "dotnet": "8.0.100-alpha.1.22531.1", + "dotnet": "8.0.100-alpha.1.22616.4", "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 76606a3264e7..662373819d49 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(handlerType, "ClearCache") is MethodInfo clearCache) + if (GetUpdateMethod("ClearCache") is MethodInfo clearCache) { handlerActions.ClearCache.Add(CreateAction(clearCache)); methodFound = true; } - if (GetUpdateMethod(handlerType, "UpdateApplication") is MethodInfo updateApplication) + if (GetUpdateMethod("UpdateApplication") is MethodInfo updateApplication) { handlerActions.UpdateApplication.Add(CreateAction(updateApplication)); methodFound = true; @@ -129,7 +129,7 @@ internal void GetHandlerActions( }; } - MethodInfo? GetUpdateMethod([DynamicallyAccessedMembers(HotReloadHandlerLinkerFlags)] Type handlerType, string name) + MethodInfo? GetUpdateMethod(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 255fb9d95b60..7c0bc894c59b 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 ex; + throw; } }, LoggerFactory)) { @@ -80,7 +80,7 @@ public async Task RequestBodyTooLargeContentLengthExceedingPerRequestLimit() catch (BadHttpRequestException ex) { exception = ex; - throw ex; + throw; } }, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize })) { @@ -286,7 +286,7 @@ public async Task RequestBodyTooLargeChunked() catch (BadHttpRequestException ex) { exception = ex; - throw ex; + throw; } }, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize })) {