Skip to content

Add async support to MVC controllers #4647

@bdukes

Description

@bdukes

Description of problem

An MVC controller which implements IAsyncController or an action method which returns Task<ActionResult> aren't respected and no asynchronous processing happens. This is a standard supported feature of MVC, and now that DNN supports async processing in the main view process, this should be able to be enabled.

Description of solution

Update the processing of MVC controllers and results to support asynchronicity.

Description of alternatives considered

n/a

Additional context

Currently, a Task returning action will be interpreted as a ContentResult and the text System.Threading.Tasks.Task[System.Web.Mvc.ActionResult] will be displayed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions