Skip to content

Commit d2f7bd0

Browse files
authored
Revert "Bump SDK to 8.0.100-alpha.1.22616.4 (#44925)" (#45639)
This reverts commit 9457554.
1 parent 8f995a0 commit d2f7bd0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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": "8.0.100-alpha.1.22616.4"
3+
"version": "8.0.100-alpha.1.22531.1"
44
},
55
"tools": {
6-
"dotnet": "8.0.100-alpha.1.22616.4",
6+
"dotnet": "8.0.100-alpha.1.22531.1",
77
"runtimes": {
88
"dotnet/x86": [
99
"$(MicrosoftNETCoreBrowserDebugHostTransportVersion)"

src/Components/WebAssembly/WebAssembly/src/HotReload/HotReloadAgent.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ internal void GetHandlerActions(
9595
{
9696
bool methodFound = false;
9797

98-
if (GetUpdateMethod("ClearCache") is MethodInfo clearCache)
98+
if (GetUpdateMethod(handlerType, "ClearCache") is MethodInfo clearCache)
9999
{
100100
handlerActions.ClearCache.Add(CreateAction(clearCache));
101101
methodFound = true;
102102
}
103103

104-
if (GetUpdateMethod("UpdateApplication") is MethodInfo updateApplication)
104+
if (GetUpdateMethod(handlerType, "UpdateApplication") is MethodInfo updateApplication)
105105
{
106106
handlerActions.UpdateApplication.Add(CreateAction(updateApplication));
107107
methodFound = true;
@@ -129,7 +129,7 @@ internal void GetHandlerActions(
129129
};
130130
}
131131

132-
MethodInfo? GetUpdateMethod(string name)
132+
MethodInfo? GetUpdateMethod([DynamicallyAccessedMembers(HotReloadHandlerLinkerFlags)] Type handlerType, string name)
133133
{
134134
if (handlerType.GetMethod(name, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static, new[] { typeof(Type[]) }) is MethodInfo updateMethod &&
135135
updateMethod.ReturnType == typeof(void))

src/Servers/IIS/IIS/test/IIS.Tests/MaxRequestBodySizeTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public async Task RequestBodyTooLargeContentLengthExceedsGlobalLimit()
3737
catch (BadHttpRequestException ex)
3838
{
3939
exception = ex;
40-
throw;
40+
throw ex;
4141
}
4242
}, LoggerFactory))
4343
{
@@ -80,7 +80,7 @@ public async Task RequestBodyTooLargeContentLengthExceedingPerRequestLimit()
8080
catch (BadHttpRequestException ex)
8181
{
8282
exception = ex;
83-
throw;
83+
throw ex;
8484
}
8585
}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize }))
8686
{
@@ -286,7 +286,7 @@ public async Task RequestBodyTooLargeChunked()
286286
catch (BadHttpRequestException ex)
287287
{
288288
exception = ex;
289-
throw;
289+
throw ex;
290290
}
291291
}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize }))
292292
{

0 commit comments

Comments
 (0)