Skip to content

Add IResult implementations for more IActionResults #32565

@halter73

Description

@halter73

Currently, only JsonResult and StatusCodeResult implement both an IActionResult and IResult. This means there are a bunch of remaining built-in IActionResults implementations that have no IResult equivalent.

  • ContentResult
  • VirtualFileResult
  • PhysicalFileResult
  • FileStreamResult
  • FileContentResult
  • RedirectResult
  • LocalRedirectResult
  • ChallengeResult
  • ForbidResult
  • SignIn/OutResult
  • RedirectToAction/PageResult?
  • ObjectResult?

ObjectResult is the big IActionResult that probably doesn't have an easy IResult implementation. I feel this requires some support for content-negotiation, but maybe we can just assume JSON.

Metadata

Metadata

Assignees

Labels

area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-minimal-actionsController-like actions for endpoint routing

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions