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>();
}