Controller Class 名称末尾没有Controller?

Controller Class without Controller at the end of the name?

由于对问题不重要的原因,我想知道如何让我的控制器/路由在 ASP.NET MVC5 中工作,如果我的控制器 class 名称 不是按照惯例以 Controller结尾吗?我需要在某个地方手动注册它们吗?

Controller 后缀被烘焙到 ControllerDescriptor and ControllerTypeCache classes making it hard to override. One way that comes to mind is to write a custom controller factory and override the GetControllerType 方法中。