Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 769 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 769 Bytes

Unravel.AspNetCore.Mvc

Unravel will try to enable as much of ASP.NET Core as possible. (Experimental!)

Extending IMvcBuilder and IMvcCoreBuilder:

  • IgnoreControllersOfType<TController>() prevents ASP.NET Core from trying to invoke legacy ASP.NET controllers.
public override void ConfigureServices(IServiceCollection services)
{
    services.AddMvc()
        .IgnoreControllersOfType<System.Web.Mvc.IController>()
        .IgnoreControllersOfType<System.Web.Http.Controllers.IHttpController>();
}