Skip to content

Missing IHttpSysRequestPropertyFeature in DefaultHttpContext for .NET 10 #64577

@eduherminio

Description

@eduherminio

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

After #61625 I would expect new DefaultHttpContext().Features.GetRequiredFeature<IHttpSysRequestPropertyFeature>() to work, but it throws.`

Expected Behavior

DefaultHttpContext.Features contains an IHttpSysRequestPropertyFeature.

Steps To Reproduce

new DefaultHttpContext().Features.GetRequiredFeature<IHttpSysRequestPropertyFeature>()

Exceptions (if any)

Feature 'Microsoft.AspNetCore.Server.HttpSys.IHttpSysRequestPropertyFeature' is not present.

.NET Version

.NET 10

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-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