Skip to content

Commit

Permalink
Revert "Bump SDK to 8.0.100-alpha.1.22616.4 (#44925)" (#45639)
Browse files Browse the repository at this point in the history
This reverts commit 9457554.
  • Loading branch information
brunolins16 authored Dec 17, 2022
1 parent 8f995a0 commit d2f7bd0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -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)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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))
Expand Down
6 changes: 3 additions & 3 deletions src/Servers/IIS/IIS/test/IIS.Tests/MaxRequestBodySizeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task RequestBodyTooLargeContentLengthExceedsGlobalLimit()
catch (BadHttpRequestException ex)
{
exception = ex;
throw;
throw ex;
}
}, LoggerFactory))
{
Expand Down Expand Up @@ -80,7 +80,7 @@ public async Task RequestBodyTooLargeContentLengthExceedingPerRequestLimit()
catch (BadHttpRequestException ex)
{
exception = ex;
throw;
throw ex;
}
}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize }))
{
Expand Down Expand Up @@ -286,7 +286,7 @@ public async Task RequestBodyTooLargeChunked()
catch (BadHttpRequestException ex)
{
exception = ex;
throw;
throw ex;
}
}, LoggerFactory, new IISServerOptions { MaxRequestBodySize = maxRequestSize }))
{
Expand Down

0 comments on commit d2f7bd0

Please sign in to comment.