dotnet/aspnetcore

Add HttpContext.Endpoint property

Open

#50,522 创建于 2023年9月5日

在 GitHub 查看
 (6 评论) (3 反应) (0 负责人)C# (10,653 fork)batch import
api-approvedarea-networkinghelp wanted

仓库指标

Star
 (37,933 star)
PR 合并指标
 (平均合并 16天 9小时) (30 天内合并 258 个 PR)

描述

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

ASP.NET Core includes the GetEndpoint and SetEndpoint extension methods for working with endpoints and HttpContext.

I think endpoints have become such an intrinsic feature to ASP.NET Core that we should consider making it a real property on HttpContext. A property would be easier to use (no need to have the right namespace for the extension method) and feel better to use compared to a method.

Describe the solution you'd like

Add HttpContext.Endpoint property.

Additional context

No response

贡献者指南