嗨我有BaseController : ApiController
和TestController : BaseController
如何获取控制器名称和TestController的相关详细信息
使用下面的代码
GlobalConfiguration.Configuration.Services.GetApiExplorer().ApiDescriptions
.GroupBy(x => x.ActionDescriptor.ControllerDescriptor.ControllerName)
.Select(x => x.First().ActionDescriptor.ControllerDescriptor.ControllerName)
我可以获得详细信息(ApiDescriptions)BaseController
如何获取TestController的详细信息( ApiDescriptions)?