Skip to content

EndpointHttpContextExtensions.GetEndpoint missing in Microsoft.AspNetCore.Http.Abstractions Nuget #62799

@TrimbleMandal

Description

@TrimbleMandal

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hi
The Microsoft.AspNetCore.Http.EndpointHttpContextExtensions.GetEndpoint extension method for the HttpContext is not in the Microsoft.AspNetCore.Http.Abstractions NuGet
Even though the documentation clearly states that it should be in this nuget package:

https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.endpointhttpcontextextensions.getendpoint?view=aspnetcore-9.0

Image

Do i miss somehting.

Best Regards
Andi

Expected Behavior

Create empty c# libary project.

Include the NuGet Microsoft.AspNetCore.Http.Abstractions

Try to use the method ´

		public static void TestStaticContext(HttpContext context)
		{
			context.GetEndpoint();
		}

Compiletime error:
CS1061:
'HttpContext' does not contain a definition for 'GetEndpoint' and no accessible extension method 'GetEndpoint' accepting a first argument of type 'HttpContext' could be found (are you missing a using directive or an assembly reference?)

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

9.0.302

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions