Skip to content

Commit 84913ff

Browse files
committed
Remove new package from trimmable projects
1 parent f601489 commit 84913ff

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

eng/TrimmableProjects.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<TrimmableProject Include="Microsoft.AspNetCore.Http.Features" />
1919
<TrimmableProject Include="Microsoft.AspNetCore.Http" />
2020
<TrimmableProject Include="Microsoft.AspNetCore.Metadata" />
21-
<TrimmableProject Include="Microsoft.AspNetCore.OpenApi" />
2221
<TrimmableProject Include="Microsoft.AspNetCore.Routing.Abstractions" />
2322
<TrimmableProject Include="Microsoft.AspNetCore.Routing" />
2423
<TrimmableProject Include="Microsoft.AspNetCore.WebUtilities" />

src/Http/Routing/src/Builder/EndpointRouteBuilderExtensions.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,10 @@ private static RouteHandlerBuilder Map(
509509
DisplayName = pattern.RawText ?? pattern.DebuggerToString(),
510510
};
511511

512-
// REVIEW: Should we add an IActionMethodMetadata with just MethodInfo on it so we are
513-
// explicit about the MethodInfo representing the "handler" and not the RequestDelegate?
514-
515-
// Add MethodInfo as metadata to assist with OpenAPI generation for the endpoint.
516-
builder.Metadata.Add(handler.Method);
517-
512+
513+
// Add the ServiceProvider to metadata so that it can be resolved
514+
// by extension methods that need accesses to the same services that
515+
// are registered by the target endpoint.
518516
if (endpoints.ServiceProvider is not null)
519517
{
520518
builder.Metadata.Add(endpoints.ServiceProvider);

0 commit comments

Comments
 (0)