Skip to content

Report in DefaultApiVersionReporter disposed RequestServices #1106

Open
@jacopocinaark

Description

@jacopocinaark

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In my application when the HttpRequest is done the RequestServices in the HttpContext is already disposed. the Report function is called after the HttpContext is disposed so an Exception is throw (searching for ISunsetPolicyManager).
image (14)
97f253ad-250a-486e-b8fd-076b48282baf
The problem was not happening before the refactoring in Asp.Versioning package

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

6.0

Anything else?

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions