Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

RTM changes to MvcRouteHandler (and should I use it at all) #4925

Closed
@pbering

Description

@pbering

Hi,

When upgrading my ASP.NET Core project from RC2 -> RTM I ran into a lot of changes done to the MvcRouteHandler. In RC2 there was an empty constructor but in RTM there is not. I had to change my code like this to use the new constructor: https://github.com/pbering/Lightcore/commit/937a7fe8cd04264110a2252fbc4ee367e3e4ed1f#diff-9529c98fccc3007ae662fcd2a5fb226c

It is working now but my question is more like, is this the correct way to execute a controller action and capture the output added to the response body? My solution to this feels a bit dirty also since the MvcRouteHandler lives in the Microsoft.AspNetCore.Mvc.Internal namespace.

Anyone has any advice on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions