net10.0
namespace Microsoft.AspNetCore.Http
{
    [DebuggerDisplay("{DebuggerToString(),nq}")]
    [DebuggerTypeProxy(typeof(HttpContextDebugView))]
    public abstract class HttpContext
    {
        public abstract IServiceProvider! RequestServices { get; set; }
    }
}
nuget.org
1.3 %
Reference this API
1.3 %
Get property
0.1 %
Set property
.NET
5.06.07.08.09.010.0
.NET Core
3.03.1
Information specific to net10.0
Assembly

Microsoft.AspNetCore.Http.Abstractions , Version=10.0.0.0, PublicKeyToken=adb9793829ddae60

Referencing

Requires any:

  • Your project needs to use SDK Microsoft.NET.Sdk.Web.

  • Your project needs a framework reference to Microsoft.AspNetCore.App.

Platform Restrictions

The property getter is supported on all platforms.

The property setter is supported on all platforms.

  • Built-in API
  • Package-provided API